[JAVA] JPA's OneToMany delete becomes update

To delete JPA's OneToMany collection, use `CascadeType.REMOVE``` or ```orphanRemoval = true```. At this time, the issued SQL expects delete```, but it becomes ```update```. The cause of this seems to be that the definition between entities (```OneToMany``` or `` JoinColumn```) is wrong. I can't give a concrete example, but I think https://stackoverflow.com/questions/17079649/jpa-orphanremoval-true-tries-to-update-not-delete is a reference example.

Recommended Posts

JPA's OneToMany delete becomes update
Rasils data save, update, delete