Is there a possibility to support such criteria? WHERE (cond1 = 1 OR cond2 = 1) AND (cond3 =1 OR cond4 = 1) ... Criteria.all ([Criteria.any([x]) ])