I have this select in SQL
.
How can I convert it to HQL
using Restrictions.or
?
select * from users where users.user_type = 1
or user.id = 1001;
1001
is not of user_type = 1
I have this select in SQL
.
How can I convert it to HQL
using Restrictions.or
?
select * from users where users.user_type = 1
or user.id = 1001;
1001
is not of user_type = 1
I managed to fix this problem by using Restrictions.disjunction()
and Restrictions.conjunction()
with Hibernate.