users@glassfish.java.net

Re: JPA - ManyToMany deletes to much

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Nov 2007 04:47:23 PST

i know and when i do CascadeType.ALL then it removes also objects that shouldn't be removed (objects with 2 parents and where only 1 parent is removed)

if i understand JPA correctly then CascadeType.ALL includes CascadeType.REMOVE so the removal operation should be simular whichever of the two i take
[Message sent by forum member 'johnnyvdlaar' (johnnyvdlaar)]

http://forums.java.net/jive/thread.jspa?messageID=246776