Module spring.data.mongodb
Class MongoExampleMapper
java.lang.Object
org.springframework.data.mongodb.core.convert.MongoExampleMapper
Mapper from
Example to a query Document.- Since:
- 1.8
- Author:
- Christoph Strobl, Mark Paluch, Jens Schauder
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMongoExampleMapper(MongoConverter converter) Create a newMongoTypeMappergivenMongoConverter. -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.DocumentgetMappedExample(Example<?> example) org.bson.DocumentgetMappedExample(Example<?> example, 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
- Parameters:
example- must not be null.entity- must not be null.- Returns:
-