title: How to replace composite key in select count with JPA criteria
body: <p>Found this bug in hibernate <a href="https://hibernate.atlassian.net/browse/HHH-5419" rel="nofollow noreferrer">HHH-5419</a></p>
  
  <p>I need to understand how I can replace Root element for type with composite key for example with asterisk.</p>
  
  <p>Update hibernate, and use JPQL not an answer.</p>