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