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 support for Range type in derived queries #459

Closed
wants to merge 3 commits into from

Conversation

meistermeier
Copy link
Collaborator

Additional to the two parameter (lower and upper bound) that uses a fixed inclusive pattern it is now possible to provide a Range to express inclusive or exclusive bounds explicitly.

Additional to the two parameter (lower and upper bound) that uses
a fixed inclusive pattern it is now possible to provide a `Range` to
express inclusive or exclusive bounds explicitly.
Copy link
Collaborator

@michael-simons michael-simons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, learned something new about SD (Range in this case).
The comment ist just taste I'd say, so therefor not as requested change.


private Filter createLowerBoundFilter(Object value, boolean inclusive) {
Filter filter = createBoundFilter(Bound.LOWER, value, inclusive);
filter.setBooleanOperator(booleanOperator);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pass on the operator on both of those (lower and upper)?
The "and" is used for the boolean operator between previous and this or this and next?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "and" is for "greater/equals than lower bound AND lower/equals than upper bound". The booleanOperator (And/Or) is for the previous ones like findByNameEqualsAnd/OrSomethingBetween.

@meistermeier
Copy link
Collaborator Author

Merged with 5de95cb

@meistermeier meistermeier deleted the issue/DATAGRAPH-1202 branch March 5, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants