-
Notifications
You must be signed in to change notification settings - Fork 1.5k
DATAJPA-218 - Add support for Query By Example. #164
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prepare issue branch.
Added prototypic support for query by example queries to SimpleJpaRepositories. Clients can use an Example Object to wrap an existing prototype entity instance that will be used to derive a query from. Would be great if we could unify this effort with the infrastructure from DATAMONGO-1245.
We convert a given Example to a set of and combinded Predicates using CriteriaBuilder. Cycles within associations are not allowed and result in an InvalidDataAccessApiUsageException. At this time only SingularAttributes are taken into concern.
6f08432
to
bed0667
Compare
786842c
to
3701f49
Compare
Adopt changes from query by example API refactoring. Related ticket: DATACMNS-810.
3701f49
to
463e17b
Compare
e63034c
to
9828c19
Compare
odrotbohm
pushed a commit
that referenced
this pull request
Mar 17, 2016
Added prototypic support for query by example queries to SimpleJpaRepositories. Clients can use an Example object to wrap an existing prototype entity instance that will be used to derive a query from. Related tickets: DATACMNS-810. Original pull request: #164.
odrotbohm
pushed a commit
that referenced
this pull request
Mar 17, 2016
We convert a given Example to a set of and combined Predicates using CriteriaBuilder. Cycles within associations are not allowed and result in an InvalidDataAccessApiUsageException. At this time only SingularAttributes are taken into concern. Switched to types used in DATACMNS-810. Related tickets: DATACMNS-810. Original pull request: #164.
odrotbohm
pushed a commit
that referenced
this pull request
Mar 17, 2016
Add reference documentation. Adapted to API changes in Spring Data Commons. Related tickets: DATACMNS-810. Original pull request: #164.
odrotbohm
added a commit
that referenced
this pull request
Mar 17, 2016
Adapted to API changes in Spring Data Commons. Related tickets: DATACMNS-810. Original pull request: #164.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We now support querying entities by providing a sample of the given object holding compare values.
At this time only
SingularAttributes
are considered and the given sample object must not contain cycles.By default
null
values will be ignored nevertheless usingNullHandler.INCLUDE
will match those usingisNull
.It is possible to ignore properties based on their property path from
Root
.Requires: spring-projects/spring-data-commons#153 (DATACMNS-810)
Supersedes: #150