title: Dereferencing collection Hibernate
body: <p>I have HQL query</p>
  
  <pre><code>SELECT contact.countryCode, contact.firstName, contact.familyName, **contact.accounts.country**
  FROM
  Contact contact, IN (contact.accounts)accounts 
  WHERE
  contact.gender = ? OR accounts.country = ?
  </code></pre>
  
  <p>and  getting illegal attempt to dereference collection [contact0_.id.accounts] with element property reference [country].</p>
  
  <p>Where, as you guess, "accounts" is a collection. What am i missing to be able to access this field from the contact object?</p>
  
  <p>Thank you</p>