How to use distinct keyword in Hibernate
<pre><code> String a="DISTINCT std FROM add_std";
 q = ses.createQuery(a);
 List &lt;my.add_std&gt;list = ses.createQuery(a).list();
</code></pre>

<p>//Error will occur if i use distinct keyword</p>