title: HQL DISTINCT doesn't work
body: <p>I searched throughout the forum; almost every answer comes to this but didn't help.
  I have the below query in my DAO but it doesn't work and I don't understand why?</p>
  
  <p>Here's my complete method:</p>
  
  <pre><code>public List&lt;RwTac&gt; findAll(){
          String sql = "select distinct v from RwTac v " +
                       "order by v.vendor" ;
          Query query = sessionFactory.getCurrentSession().createQuery(sql);
          return query.list();
      }
  </code></pre>
  
  <p>Thank you.</p>