Hi all, sorry my bad english...
I need to delete a parent, but keep yours childs.
My problems is: I have an group, such as "programers'" and yours users "john", "mary" and "george".
I need to delete the "programers" group, but preserve the users "john", "mary" and "george" (because these users are used in other groups).
The relation between groups an users is N-N where exists cascade="save-update" in group way. This mechanisms throw constraints exceptions in DB when I try to delete a group "programers".
PS. I'm using 3tier architecture where the parent (group) is returned to UI without childs (users) - lazy="true".
_________________ Do you still create DTO factories? Oh, no!
Try DTOptimzier now!
https://dtoptimizer.dev.java.net/
|