Restrictions.and()& Hibernate Criteria API中的Restrictions.conjuction()

时间:2018-05-31 10:19:40

标签: java hibernate hibernate-criteria

我是Hibernate框架的新手。有人可以帮助我 这两种方法之间存在差异,因为这两种方法执行 AND 操作。 enter image description here

1 个答案:

答案 0 :(得分:0)

它们与Restriction.and()执行2个表达式的and操作的唯一警告实际上具有相同的含义。 Restriction.conjuction()任意数量的表达式。