0

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

1 Answers1

0

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)

Mike
  • 463
  • 2
  • 11