title: Hibernate field multiple alias
body: <p>I am having an entity, which has collections field (params). There can be many params. I want to make unique join for each unique param. i.e. <code>p1.id = ? AND p2.id = ? AND p3.id = ?</code> etc.</p>
  
  <p>In Hibernate, when I try to create alias for the same field, it throws exception with message about duplicate alias.</p>
  
  <p>How can I achieve multiple joins for the field?</p>
  
  <p>I am using spring framework, hibernate and postgresql.</p>
  
  <p>Thanks in advance.</p>