[jboss-user] [EJB 3.0] - Re: Simple remove wont work. Detached instance

trashhash do-not-reply at jboss.com
Fri Jan 12 14:06:27 EST 2007


Thansk for your reply. It turns out that the exception is thrown because the cascade option. This works fine.


  | em.remove(em.merg(user));
  | 

While 


  | em.remove(user);
  | 

Dose not work because my User have an external reference to a Address. So bt deleting User it would like to also delete The Address.

Now I would like to know who do I set  the cascade option. So I can delete a Player without removing a Team. And vice versa.

Thanks for your time.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001072#4001072

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001072



More information about the jboss-user mailing list