Class MongoExampleMapper
java.lang.Object
org.springframework.data.mongodb.core.convert.MongoExampleMapper
-
Constructor Summary
ConstructorsConstructorDescriptionMongoExampleMapper(MongoConverter converter) Create a newMongoTypeMappergivenMongoConverter. -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.DocumentgetMappedExample(Example<?> example) org.bson.DocumentgetMappedExample(Example<?> example, @Nullable MongoPersistentEntity<?> entity)
-
Constructor Details
-
MongoExampleMapper
Create a newMongoTypeMappergivenMongoConverter.- Parameters:
converter- must not be null.
-
-
Method Details
-
getMappedExample
- Parameters:
example- must not be null.- Returns:
-
getMappedExample
public org.bson.Document getMappedExample(Example<?> example, @Nullable MongoPersistentEntity<?> entity) - Parameters:
example- must not be null.entity- must not be null.- Returns:
-