Hi,
i have a problem with deleting child using cascade:
Quote:
object A contains a set<B> (object B) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)
Quote:
object B contains a set<C> (object C) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)
Quote:
object C contains a set<D> (object D) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)
i put a CascadeType.ALL at level oneToMany too for all theses objects.
so when, i remove one child of object
D from the set, and call saveOrUpdate(
A), nothing is delete!!!
please help.
Thanks