Skip to content
Advertisement

Tag: cascading-deletes

What is the difference between CascadeType.REMOVE and orphanRemoval in JPA?

What’s the difference between and This example is from Java EE Tutorial, but I still don’t understand details. Answer From here:- Cascading Remove Marking a reference field with CascadeType.REMOVE (or CascadeType.ALL, which includes REMOVE) indicates that remove operations should be cascaded automatically to entity objects that are referenced by that field (multiple entity objects can be referenced by a collection

Advertisement