title: How to create inner join with multiple conditions in hibernate
body: <p>I want to achieve the following query with hibernate:</p>
  
  <pre><code>SELECT * form A
  INNER JOIN B
  ON A.id = B.id AND B.someOtherColumn = 5
  </code></pre>
  
  <p>I don't know how to add the AND statement.</p>