i have SQL query , i don\'t know how to write in hibernate
select lp.lnprdtname,la.lid,la.step
from mfic.lnapp as la
left join mfic.lnprdt as lp on lp.lnprdtid
As said here: Chapter 14. HQL: The Hibernate Query Language - 14.13. Subqueries
from DomesticCat as cat where cat.name not in ( select name.nickName from Name as name )
Note that HQL subqueries can occur only in the select or where clauses.
Anyway, I'm not sure it's a good idea to concat so many subqueries in a single statement...