title: Hibernate genericDao projection
body: <p>I'm using Hibernate 4.2.7.Final with <a href="https://code.google.com/p/hibernate-generic-dao/" rel="nofollow">Google genericDAO</a> 1.2.0. I'm interested in how can I write a search with group by? </p>
  
  <p>For example:</p>
  
  <pre><code>select a, sum(b) from table group by a
  </code></pre>
  
  <p>with</p>
  
  <pre><code>Search search = new Search();
  search.addFieldGroupBy("a"); //this does not exist, I need something like this
  search.addField("b", Field.OP_SUM);
  </code></pre>