title: How to do a cascade save in hibernate
body: <p>I have objects A and B. </p>
  
  <p>Object A is like</p>
  
  <pre><code>class A{
   Set&lt;B&gt;
  }
  </code></pre>
  
  <p>Now when I save A I want that all objects in <code>Set&lt;B&gt;</code> of A should be automatically saved in DB. How can I do it?</p>