-
Notifications
You must be signed in to change notification settings - Fork 703
Closed
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
In this method here:
Shouldn't the create() method used here (as well as the and() or or() methods) allow and consider null returns?
Consider the case in a custom query creator where I am processing keywords, but for a specific keyword, based on some logic, I DO NOT want to add a predicate. So, from PredicateBuilder::build(), I would want to return null (which works if I don't have any additional predicates), but if I did, that would blow up on the and() and or() calls.
The only thing I can do now is use CriteriaBuilder::conjunction() but that adds a where 1=1 clause.
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged