title: Criteria query, group by
body: <p>I have a simple criteria query:</p>
  
  <pre><code>    prc.arrDomainACST = c
              .createAlias('ACCR_DOMA_KY', 'd', c.LEFT_JOIN)
              .withProjections(property = 'ACMA_KY,d.SHORT_DESCRIPTION_LB,ACCR_DOMA_KY.DOMA_KY')
              .order('d.SHORT_DESCRIPTION_LB','asc',true)
              .list();
  </code></pre>
  
  <p>How do I add "group by ACCR_DOMA_KY.DOMA_KY" to it?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>    .withProjections(property = 'ACMA_KY,d.SHORT_DESCRIPTION_LB,ACCR_DOMA_KY.DOMA_KY', groupproperty="ACCR_DOMA_KY.DOMA_KY")
  </code></pre>
  
  <p>but I get a "not a GROUP BY expression" error. And using min() or max() functions on the other two columns gets me a "could not resolve property" error.</p>
  
  <p>What am I missing here?</p>