@@ -280,6 +280,7 @@ public void setCodecRegistryProvider(@Nullable CodecRegistryProvider codecRegist
280
280
this .codecRegistryProvider = codecRegistryProvider ;
281
281
}
282
282
283
+ @ Override
283
284
public MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > getMappingContext () {
284
285
return mappingContext ;
285
286
}
@@ -432,6 +433,7 @@ public Map<String, Object> getBean() {
432
433
}
433
434
}
434
435
436
+ @ Override
435
437
public <S extends Object > S read (Class <S > clazz , Bson bson ) {
436
438
return read (TypeInformation .of (clazz ), bson );
437
439
}
@@ -729,6 +731,7 @@ private Object readUnwrapped(ConversionContext context, DocumentAccessor documen
729
731
return null ;
730
732
}
731
733
734
+ @ Override
732
735
public DBRef toDBRef (Object object , @ Nullable MongoPersistentProperty referringProperty ) {
733
736
734
737
org .springframework .data .mongodb .core .mapping .DBRef annotation ;
@@ -795,6 +798,7 @@ DocumentPointer<?> createDocumentPointer(Object source, @Nullable MongoPersisten
795
798
*
796
799
* @see org.springframework.data.mongodb.core.convert.MongoWriter#write(java.lang.Object, java.lang.Object)
797
800
*/
801
+ @ Override
798
802
public void write (Object obj , Bson bson ) {
799
803
800
804
if (null == obj ) {
@@ -934,7 +938,7 @@ private void writeAssociation(Association<MongoPersistentProperty> association,
934
938
}
935
939
936
940
@ SuppressWarnings ({ "unchecked" })
937
- protected void writePropertyInternal (@ Nullable Object obj , DocumentAccessor accessor , MongoPersistentProperty prop ,
941
+ void writePropertyInternal (@ Nullable Object obj , DocumentAccessor accessor , MongoPersistentProperty prop ,
938
942
PersistentPropertyAccessor <?> persistentPropertyAccessor ) {
939
943
940
944
if (obj == null ) {
@@ -1610,13 +1614,13 @@ public Object convertToMongoType(@Nullable Object obj, @Nullable TypeInformation
1610
1614
}
1611
1615
1612
1616
@ Override
1613
- public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity entity ) {
1617
+ public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity <?> entity ) {
1614
1618
Document newDocument = new Document ();
1615
1619
writeInternal (obj , newDocument , entity );
1616
1620
return newDocument ;
1617
1621
}
1618
1622
1619
- // TODO: hide in 4 .0
1623
+ // TODO: hide in 5 .0
1620
1624
public List <Object > maybeConvertList (Iterable <?> source , @ Nullable TypeInformation <?> typeInformation ) {
1621
1625
1622
1626
List <Object > newDbl = new ArrayList <>();
@@ -1948,6 +1952,7 @@ static class MongoDbPropertyValueProvider implements PropertyValueProvider<Mongo
1948
1952
this .spELContext = spELContext ;
1949
1953
}
1950
1954
1955
+ @ Override
1951
1956
@ Nullable
1952
1957
@ SuppressWarnings ("unchecked" )
1953
1958
public <T > T getPropertyValue (MongoPersistentProperty property ) {
0 commit comments