Skip to content

Add support for Query-By-Example. [DATAMONGO-1245] #2161

Closed
@spring-projects-issues

Description

@spring-projects-issues

Christoph Strobl opened DATAMONGO-1245 and commented

provide means to allow using a partially filled domain object as pattern for the actual query.

Person sample = new Person();
sample.setLastname("Matthews");

List<Person> result = repository.findAllByExample(new Example<Person>(sample));
  • Provide Example wrapper where one is able to define null value and String handling.
  • Offer findByExample as respository method

Issue Links:

Referenced from: pull request #341

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions