Tuesday, 20 August 2013

putting distinct in the hql

putting distinct in the hql

I have the below HQL to fetch out all the persons from the table
return session.find("from Person u where u.active='N'");
Now I want to fetch all the unique persons please advise how to put
distinct in the above hql query

No comments:

Post a Comment