[jboss-user] [EJB 3.0] - Re: Many-to-Many and cascade pronlem ?
fhh
do-not-reply at jboss.com
Mon Apr 16 04:36:58 EDT 2007
If you do NOT want to cascade on remove then don't set it. The cascade options refer to the Java objects NOT the representation in the database.
The rows from the ManyToMay JoinTable will get removed WITHOUT any cascading options set because removing the User and not the rows in the join table would violate a fk constraint.
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037457#4037457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037457
More information about the jboss-user
mailing list