title: javax.persistence.EntityNotFoundException: deleted entity passed to persist: [com.disney.zeus.client.entity.MaterialAudioChannel#<null>]
body: <p>i have a problem while deleting the child entities, this is giving me the below exception
  javax.persistence.EntityNotFoundException: deleted entity passed to persist: [com.myproj.test.entity.XYZ#].</p>
  
  <p>parent Entity :</p>
  
  <pre><code>...
  
  public class ABC implements java.io.Serializable {
  
  ...
  
   // it has a @oneToMany relationship with XYZ entity as specified below.
  
   @OneToMany(mappedBy = "abbc", cascade = CascadeType.ALL)
   private List&lt;XYZ &gt; xyzs;
  </code></pre>
  
  <p>}</p>
  
  <p>...</p>
  
  <p>Child Entity :-</p>
  
  <pre><code> ...
  
   public class XYZ implements java.io.Serializable {
  
    ...
  
    // and this has @manyToOne relation as below
  
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ABC_ID")
    private ABC abc;
  
    ...
  </code></pre>
  
  <p>}</p>
  
  <p>from service calss iam invoking delete method by passing the entity instance to delete as below.</p>
  
  <p>delete(XYZ xyzs){</p>
  
  <pre><code> for(XYZ xyz :xyzs){
  
   // i have the entityManger instance and calling remove
  
   entityManager..find(XYZ.class, xyz.getXyzId());
  
   entityManger.remove(xyz);
  
   }
  </code></pre>
  
  <p>}</p>
  
  <p>now it is giving me the above specified exception.
  Plase any one help me out in this issue.
  Thanks in advance.</p>
  
  <p>Surendar Reddy. K</p>