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
Some IDEs will emit potential NullPointerException warnings on the Specification#and(Specification) calls (because Specification#where(Specification) is @Nullable)
It forces us to mutate the specification variable
Can get very messy when nesting multiple AND/OR operations
This is going to be part of a major revamp of our Specification story for the release train post Neumann. Rest assured we will get to that but it will very likely to be post Neumann release, currently scheduled for May
Daniel Shuy Yaw Yong opened DATAJPA-1651 and commented
Currently, when handling multiple conditional Specifications, the code looks something like:
This approach has the following disadvantages:
@Nullable
)This is a feature request to add static utility methods to create conjunctions/disjuntions of Collections/varargs of Specifications, similar to Querydsl's ExpressionUtils#allOf(Collection) / ExpressionUtils#allOf(Predicate...) / ExpressionUtils#anyOf(Collection) / ExpressionUtils#anyOf(Predicate...)
This will allow for better structured code when handling multiple conditional Specifications, eg. using the same example above:
Issue Links:
Referenced from: pull request #404
The text was updated successfully, but these errors were encountered: