[jboss-user] [EJB 3.0] - Re: Many-to-Many and cascade pronlem ?
fhh
do-not-reply at jboss.com
Sun Apr 15 18:37:38 EDT 2007
anonymous wrote : When I tried to remove User, it will remove all the roles in the ROLE that the user has and also all the related records in the USER_ROLE_LINK.
|
I would say this is the expected behavoiour. You asked to remove the user and all of his roles.
anonymous wrote :
| And how can I remove all the users that a role have when remove a ROLE ?
|
Have you tried removing the CasadeType.ALL and replace it with the cascade types you actually want?
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037403#4037403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037403
More information about the jboss-user
mailing list