How to write this query in HQL:
select * from Employee where Emp_Code
NOT IN (select Emp_Code from EmployeeAllocation);
I was unable to find any solution for this on google. I dont know how to write NOT IN clause in HQL The result should must be fetched to a List. Like this:
List<String> lst = query.list();