Class MongoExampleMapper

java.lang.Object
org.springframework.data.mongodb.core.convert.MongoExampleMapper

public class MongoExampleMapper extends Object
Mapper from Example to a query Document.
Since:
1.8
Author:
Christoph Strobl, Mark Paluch, Jens Schauder
See Also:
  • Constructor Details

  • Method Details

    • getMappedExample

      public org.bson.Document getMappedExample(Example<?> example)
      Returns the given Example as Document holding matching values extracted from Example.getProbe().
      Parameters:
      example - must not be null.
      Returns:
    • getMappedExample

      public org.bson.Document getMappedExample(Example<?> example, MongoPersistentEntity<?> entity)
      Returns the given Example as Document holding matching values extracted from Example.getProbe().
      Parameters:
      example - must not be null.
      entity - must not be null.
      Returns: