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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user