title: hibernate criteria query get multiple counts in single query.
body: <p>I'm wondering if anybody knows how to get multiple counts from a single query using hibernates criteria query?</p>
  
  <p>I have the following query. </p>
  
  <pre><code>List&lt;PurchaseRequest&gt; prs = this.session.createCriteria(PurchaseRequest.class).list();
  </code></pre>
  
  <p>within PurchaseRequest, I have a column called current_state. I'd like to query all the PurchaseRequest rows and group the current_states together so I can get a total count of each current_state. </p>
  
  <p>States look like this, creator, authorizer, assignor. etc.</p>