title: In Many to One Relationship how to delete child objects
body: <p>Many to One :</p>
  
  <p>When removing child object it shoud also remove parent object in Many-to-One relationship. While saving a single object in both parent and child it's working fine. But if I add more than one child object (2 or more) to one parent class, then how can I delete the child object from the list of child objects of one parent class? </p>
  
  <p>Child POJO:</p>
  
  <pre><code>  @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="id")
    private int id;
    @Column(name="cName")
    private String cName;  
  
    @ManyToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER)
    @JoinColumn(name="pId")
    private Parent parent
  </code></pre>
  
  <p>Parent POJO:</p>
  
  <pre><code>  @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="id")
    private int id;
    @Column(name="pName")
    private String pName;
    @Column(name="address")
    private String address;
  </code></pre>