JPA OneToMany not deleting child

JPA’s behaviour is correct (meaning as per the specification): objects aren’t deleted simply because you’ve removed them from a OneToMany collection. There are vendor-specific extensions that do that but native JPA doesn’t cater for it. In part this is because JPA doesn’t actually know if it should delete something removed from the collection. In object … Read more