title: how to create new Entity using existing entity in hibernate
body: <p>We Have a very Nested Object for example</p>
  
  <pre><code>Class A {
    Set&lt;B&gt;
    Set&lt;C&gt;
    Set&lt;D&gt;
  }
  Class B{
    Set&lt;P&gt;
  }
  Class P {
    Set&lt;X&gt;
  }
  </code></pre>
  
  <p>Now my requirement is to create duplicate object . </p>
  
  <p>And Since we Don't want to touch existing entity so we need to create complete object.</p>
  
  <p>Is hibernate gives any way to create complete object other than manually iterating each object and make Ids Null?</p>
  
  <p>Thanks.</p>