I am trying to make a query in hibernate "criteria" (not in hql) but I am not getting what to do or what to use.
select * from foo where column1 = 8 and column2 not in (
select column2 from foo where column1 = 11
)
I made it with two different queries and then use Java function to get the result, BUT I need one single criterion query for it.