@@ -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 ) {
@@ -933,6 +937,7 @@ private void writeAssociation(Association<MongoPersistentProperty> association,
933
937
writePropertyInternal (value , dbObjectAccessor , inverseProp , accessor );
934
938
}
935
939
940
+ // TODO: Documentaccessor is package-private
936
941
@ SuppressWarnings ({ "unchecked" })
937
942
protected void writePropertyInternal (@ Nullable Object obj , DocumentAccessor accessor , MongoPersistentProperty prop ,
938
943
PersistentPropertyAccessor <?> persistentPropertyAccessor ) {
@@ -1610,7 +1615,7 @@ public Object convertToMongoType(@Nullable Object obj, @Nullable TypeInformation
1610
1615
}
1611
1616
1612
1617
@ Override
1613
- public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity entity ) {
1618
+ public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity <?> entity ) {
1614
1619
Document newDocument = new Document ();
1615
1620
writeInternal (obj , newDocument , entity );
1616
1621
return newDocument ;
@@ -1948,6 +1953,7 @@ static class MongoDbPropertyValueProvider implements PropertyValueProvider<Mongo
1948
1953
this .spELContext = spELContext ;
1949
1954
}
1950
1955
1956
+ @ Override
1951
1957
@ Nullable
1952
1958
@ SuppressWarnings ("unchecked" )
1953
1959
public <T > T getPropertyValue (MongoPersistentProperty property ) {
@@ -2261,6 +2267,7 @@ default <S> S findContextualEntity(MongoPersistentEntity<S> entity, Document doc
2261
2267
return null ;
2262
2268
}
2263
2269
2270
+ // TODO: ObjectPath is package-private
2264
2271
ObjectPath getPath ();
2265
2272
2266
2273
CustomConversions getCustomConversions ();
@@ -2421,6 +2428,7 @@ public ConversionContext withPath(ObjectPath currentPath) {
2421
2428
collectionConverter , mapConverter , dbRefConverter , elementConverter );
2422
2429
}
2423
2430
2431
+ // TODO: ObjectPath is package-private
2424
2432
@ Override
2425
2433
public ObjectPath getPath () {
2426
2434
return path ;
0 commit comments