SyntaxFix
Write A Post
Hire A Developer
Questions
The difference is: - orphanRemoval = true: "Child" entity is removed when it's no longer referenced (its parent may not be removed). - CascadeType.REMOVE: "Child" entity is removed only when its "Parent" is removed.