关于 Restrictions.or 和 Restrictions.and 的小问题
如果我做这样的事情:
...
criterion = criterionA;
criterion = Restrictions.and(criterion, criterionB);
criterion = Restrictions.or(criterion, criterionC);
criterion = Restrictions.and(criterion, criterionD);
这将被视为:
(A and B) or (C and D) (following mathematical conventions)
还是会按照添加限制的顺序进行处理:
(((A and B) or C) and D)
如果有任何参考,也请添加...