Skip to content
Advertisement

Tag: jpa-1.0

JPA OneToMany not deleting child

I have a problem with a simple @OneToMany mapping between a parent and a child entity. All works well, only that child records are not deleted when I remove them from the collection. The parent: The child: If I now delete and child from the childs Set, it does not get deleted from the database. I tried nullifying the child.parent

Advertisement