title: hibernate HQL elements error
body: <p>My HibernateUserImpl mapping look like below</p>
  
  <pre><code>&lt;set name="groups" table="OS_USER_GROUP" inverse="false" cascade="none" lazy="false"&gt;
      &lt;key column="user_id"/&gt;
      &lt;many-to-many column="group_id" class="com.opensymphony.user.provider.hibernate3.ahxu.impl.HibernateGroupImpl"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>I do HQL query like </p>
  
  <pre><code>select distinct hibuser from HibernateUserImpl hibuser, hibuser.groups.elements  hibgroup where hibuser.name = ? and hibgroup.name = ?
  </code></pre>
  
  <p>I get error for hibuser.groups.<strong>elements</strong>  . Is there anything I miss out?</p>
  
  <p>error in console</p>
  
  <pre><code>org.hibernate.hql.ast.QuerySyntaxException: hibuser.groups.elements is not mappe
  d [select distinct hibuser from com.opensymphony.user.provider.hibernate3.ahxu.i
  mpl.HibernateUserImpl hibuser, hibuser.groups.elements  hibgroup where hibuser.n
  ame = ? and hibgroup.name = ?]
  </code></pre>