I have a one-to-many relation between Parent and Child table. In the parent object I have a
List setChildren(List childs)
In short set cascade type to all , will do a job; For an example in your model. Add Code like this . @OneToMany(mappedBy = "receipt", cascade=CascadeType.ALL) private List saleSet;