-
Notifications
You must be signed in to change notification settings - Fork 132
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 Criteria composition #289
Comments
Thanks for the ticket. These are actually two different requirements here. First, Spring Data R2DBC uses the SQL DSL on a lower abstraction level to create statements by considering dialect-specifics. The example
does not accept parameter bindings as we expect parameters to be passed in through the The Criteria API was built to help with simple use-cases. It makes sense to introduce an empty |
We now support composition of Criteria objects to create a Criteria from one or more top-level criteria and to compose nested AND/OR Criteria objects: Criteria.where("name").is("Foo")).and(Criteria.where("name").is("Bar").or("age") .lessThan(49).or(Criteria.where("name").not("Bar").and("age").greaterThan(49))
We now support composition of Criteria objects to create a Criteria from one or more top-level criteria and to compose nested AND/OR Criteria objects: Criteria.where("name").is("Foo")).and(Criteria.where("name").is("Bar").or("age") .lessThan(49).or(Criteria.where("name").not("Bar").and("age").greaterThan(49))
We now support composition of Criteria objects to create a Criteria from one or more top-level criteria and to compose nested AND/OR Criteria objects: Criteria.where("name").is("Foo")).and(Criteria.where("name").is("Bar").or("age") .lessThan(49).or(Criteria.where("name").not("Bar").and("age").greaterThan(49)) Original pull request: #307.
Refactored DefaultDatabaseClientUnitTests in order to make the relevant differences in setup easier to spot. Formatting and nullability annotations. Original pull request: #307.
Done. |
Minor formatting. Original pull request: #308.
Criteria.where(Condition)
will support the construction of dynamic where clauses.The text was updated successfully, but these errors were encountered: