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
Why don't we create methods for each type of condition to avoid typos, for example:
Instead of having just a setCondition('Id in :ids') we use:
in(String, Object) -> looking like this:
in('Id', ids)
greaterThan
greaterThanEquals
lessThan
lessThanEquals
And
notIn
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why don't we create methods for each type of condition to avoid typos, for example:
Instead of having just a setCondition('Id in :ids') we use:
in(String, Object) -> looking like this:
in('Id', ids)
greaterThan
greaterThanEquals
lessThan
lessThanEquals
And
notIn
model:
https://www.objectdb.com/api/java/jpa/criteria/CriteriaBuilder
Beta Was this translation helpful? Give feedback.
All reactions