I can’t figure out how to create a query like this with Hibernate Criteria synthax
select * from x where x.a = 'abc' and (x.b = 'def' or x.b = 'ghi')
Do you have an idea of how to do that?
I’m Using Hibernate Restriction static methods but I don’t understand how to specify the nested ‘or’ condition
You specific query could be:
If you’re wondering about ANDs and ORs in general, do this:
This will be equivalent to: