我在SQL中有这个选择。
如何使用Restrictions.or将其转换为HQL?
select * from users where users.user_type = 1
or user.id = 1001;1001不属于user_type = 1
发布于 2013-05-26 15:19:16
通过在Hibernate中使用Restrictions.disjunction()和Restrictions.conjunction(),我设法解决了这个问题。
https://stackoverflow.com/questions/16730815
复制相似问题