You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the ticket. These are actually two different requirements here. First, Criteria.where(…). The second one deals with the fact of introducing the SQL DSL API into the criteria API.
Spring Data R2DBC uses the SQL DSL on a lower abstraction level to create statements by considering dialect-specifics. The example name = :name does not work here. Named parameters are resolved only for plain queries via the execute(…) API. Furthermore,
does not accept parameter bindings as we expect parameters to be passed in through the Criteria object. So there's no way how we could bind the parameter.
The Criteria API was built to help with simple use-cases. It makes sense to introduce an empty Criteria object via Criteria.empty() that allows composition without the code to consider whether you're constructing the first or a subsequent Criteria segment.
Activity
[-]Criteria support initial condition.[/-][+]Criteria.where() support initial condition.[/+]mp911de commentedon Jan 27, 2020
Thanks for the ticket. These are actually two different requirements here. First,
Criteria.where(…). The second one deals with the fact of introducing the SQL DSL API into the criteria API.Spring Data R2DBC uses the SQL DSL on a lower abstraction level to create statements by considering dialect-specifics. The example
name = :namedoes not work here. Named parameters are resolved only for plain queries via theexecute(…)API. Furthermore,does not accept parameter bindings as we expect parameters to be passed in through the
Criteriaobject. So there's no way how we could bind the parameter.The Criteria API was built to help with simple use-cases. It makes sense to introduce an empty
Criteriaobject viaCriteria.empty()that allows composition without the code to consider whether you're constructing the first or a subsequentCriteriasegment.[-]Criteria.where() support initial condition.[/-][+]Add support for Criteria composition[/+]#289 - Prepare issue branch.
#289 - Add support for Criteria composition.
#289 - Add support for Criteria composition.
#289 - Add support for Criteria composition.
#289 - Polishing.
schauder commentedon Mar 10, 2020
Done.
#289 - Polishing.