title: Hibernate Group by Criteria Object
body: <p>I would like to implement the following SQL query with Hibernate Criteria:</p>
  
  <pre><code>SELECT column_name, aggregate_function(column_name)
  FROM table_name
  WHERE column_name &lt;operator&gt; value
  GROUP BY column_name
  </code></pre>
  
  <p>I have tried to implement this with Hibernate Criteria but it didn't work out.</p>
  
  <p>Can anyone give me an example how this can be done with Hibernate Criteria?
  Thanks!</p>