title: hibernate manytomany xdoclet
body: <p>is this the right way of using it? because it does not work. i have the same thing in the RoleDAO. the two tables for users and roles are generated, but the table that links userid to roleid is not.</p>
  
  <p>(more info on the syntax bellow <a href="http://xdoclet.codehaus.org/HibernateTags#HibernateTags-hibernate.manytomany" rel="nofollow noreferrer">http://xdoclet.codehaus.org/HibernateTags#HibernateTags-hibernate.manytomany</a> hibernate xdoclet tags)</p>
  
  <pre><code>/**
   * @hibernate.id generator-class="native"
   * @hibernate.generator-param name="sequence" value="seq_userid"
   * @hibernate.many-to-many column="roleID"
   *                         class="domain.company.product.service.cm.RoleDAO.java"
   */
  public Integer getUserID() {
      return userID;
  }
  </code></pre>
  
  <p>focus please on<br>
  <strong>many-to-many column="roleID" class="domain.company.product.service.cm.RoleDAO.java"</strong></p>
  
  <p>edit:</p>
  
  <p>ok. now using:</p>
  
  <pre><code>private Set&lt;RoleDAO&gt; roles = new HashSet&lt;RoleDAO&gt;();
  
  /**
   * @hibernate.many-to-many column="roleID"
   *                         class="domain.company.producut.service.cm.RoleDAO.java"
   */
  public Set&lt;RoleDAO&gt; getRoles() {
      return roles;
  }
  </code></pre>
  
  <p>but still not seing the table that links roles and users.</p>