SQL NOT operator #1778
-
Hello,
and the compositePredicate being something like this which is build using the .whereOr() and .whereAnd() builder.
I know that I can negate the predicates itself e.g. using a .ne() instead of .eq() but then I would need to swap the AND/OR operators inside the compositePredicate. Since I need the compositePredicate in another query too I would be nice to be able to simply negate the whole compositePredicate. With jakarta.persistence.criteria.CriteriaBuilder I can implement this with
I checked the documentation and disscussions here on github but couldnt find a way to negate a predicate which is build using the .whereOr() builder. Am I missing something or is this not possible with blaze-persistence? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are right that this is not possible yet. This is a nice new feature for version 2, which could be easily implemented with the generic predicate builder: #1596 Possible syntax:
|
Beta Was this translation helpful? Give feedback.
You are right that this is not possible yet. This is a nice new feature for version 2, which could be easily implemented with the generic predicate builder: #1596
Possible syntax: