title: how to define an inverse cascade delete on a many-to-one mapping in hibernate
body: <p>I have two classes A and B. Many B's can have association with a single A, hence a many-to-one relationship from B to A. I've mapped the relationship like:</p>
  
  <pre><code>&lt;class name="A" table="tbl_A"&gt;
    &lt;property name="propA" column="colA"/&gt;
  &lt;/class&gt;
  &lt;class name="B" table="tbl_B"&gt;
    &lt;property name="propB" column="colB"/&gt;
    &lt;many-to-one name="a" class="A" column="col1" cascade="delete"/&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p>A has nothing mapped to B. Keeping this in mind we intend to delete B when it's associated A is deleted. This could have been possible if I could define an inverse="true" on the many-to-one association in B but hibernate does not allow that.</p>
  
  <p>Can anyone help with this? We do not want to write anything in A for this.</p>