title: How do I get the Hibernate reverse engineering tools to generate <bag> or <list> for inverse associations?
body: <p>I want to add elements to a collection that ends up getting mapped like this:</p>
  
  <pre><code>&lt;set name="others" inverse="true" lazy="true" table="other" fetch="select"&gt;
    &lt;key&gt;
      &lt;column name="otherId" not-null="true" /&gt;
    &lt;/key&gt;
    &lt;one-to-many class="my.pkg.OtherEntity" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>I'd like Hibernate to use  instead, because I don't care about the order they're retrieved in, I just want to keep that side of the association up-to-date.  According to <a href="https://www.hibernate.org/117.html" rel="nofollow noreferrer">https://www.hibernate.org/117.html</a>, "Hibernate can add to a &lt;bag&gt;, &lt;idbag&gt; or &lt;list&gt; declared with inverse="true" without initializing the collection."</p>
  
  <p>My problem is I don't know how to force (or suggest to) the reverse engineering tools (hibernate-tools.jar) to use &lt;bag&gt; or &lt;list&gt;--it ALWAYS uses &lt;set&gt;.</p>
  
  <p>Thanks!</p>