I wonder why the Restrictions.or only can accept 2 parameter.
I Need to do something like below.
(A and B) or (C and D) or ( E and F ) or (G and H) or ...
Any idea can achieve this?
Thank
I wonder why the Restrictions.or only can accept 2 parameter.
I Need to do something like below.
(A and B) or (C and D) or ( E and F ) or (G and H) or ...
Any idea can achieve this?
Thank
Per the API Documentation, the .or(...)
method is overloaded. The one you reference and another that takes an array o
public static Disjunction or(Criterion... predicates)