Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add query by example support to DynamicFinder #8

Open
Riduidel opened this issue Jul 20, 2012 · 1 comment
Open

Add query by example support to DynamicFinder #8

Riduidel opened this issue Jul 20, 2012 · 1 comment
Assignees

Comments

@Riduidel
Copy link
Owner

It may seem complicated but is not.

The goal is to generate a query from a template object, by using query operations specified on each field of query object. It should perfectly fit, to my mind, the concepts expressed in DynamicFinder by adding support for all *FromExample queries :

  • findAllFromExample
  • findRangeFromExample
  • countFromExample

....

with set of parameter defined according to standard DynamicFinder rules.

@ghost ghost assigned Riduidel Jul 20, 2012
@Riduidel
Copy link
Owner Author

This should in fact be also supported in non dynamic query. i'm thinking about something like

 myService().find().matching(myExampleBean).count();

It should be enough, no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant