Setting orphanRemoval to true while migrating children from their parent to another parent
问题 Important Notice : If you are reading this post, then consider looking into this post too for in-depth discussions. It is a quite usual practice/situation/requirement where children of a parent may be migrated to another parent. What happens, if orphanRemoval is set to true on the inverse side of such relationships? Consider as an example, any simple one-to-many relationship as follows. Inverse side (Department) : @OneToMany(mappedBy = "department", fetch = FetchType.LAZY, cascade =