title: how to create hibernate criteria with group by clause?
body: <p>I need to create criteria analogous to </p>
  
  <pre><code>select obj, obj.prop.id from Object1 obj group by obj.prop.id
  </code></pre>
  
  <p>How to do that?</p>