title: Hibernate criteria how to get rows with max column value
body: <p>I have a table like below:</p>
  
  <pre><code>       user_id   number
          1         10
          2         17
          1         12
          2         18
  </code></pre>
  
  <p>I mean one user can have more than one row.
  I have to reach following result:</p>
  
  <pre><code>       user_id   number
          1         12
          2         18
  </code></pre>
  
  <p>How can I achive this with hibernate criteria?</p>