title: How to get SELECT values and COUNT value with JPA GROUP BY?
body: <p>If my entity is get as a Man, it have name, id  properties, with JPA how I get retrieve result like this query,</p>
  
  <pre><code>entityManager.createQuery("SELECT m.name AS name, COUNT(m) AS total FROM Man AS m GROUP BY m.name ORDER BY m.name ASC");
  </code></pre>
  
  <p>Is there any way to use  <code>org.springframework.jdbc.core.RowMapper</code> with JPA?</p>