Use .and() syntax by default with .where(BiFunction) and .nested() predicate
Activity
Show:
Fixed
Details
Details
Assignee

Reporter

Components
Sprint
None
Fix versions
Priority
Created August 17, 2022 at 1:45 PM
Updated July 3, 2023 at 11:28 AM
Resolved August 25, 2022 at 8:48 AM
Follows up on
The .where(BiFunction) syntax uses a
bool
predicate:But most of the time, I expect people will want an
and
, and we just introduced a simpler syntax forand
predicates ( ).It would probably be better to use the
and
syntax there:Similarly, the current syntax for adding clauses to a
nested
predicate is that of thebool
predicate:However, most of the time one will simply want an
and
inside thenested
predicate: anor
would be equivalent to not using the nested predicate to begin with, and advanced features of thebool
predicate are… well, for advanced users.We should probably use an (implicit)
and
there as well: