I am assuming you have a @ManyToOne realationship in the Entity you are trying
to delete. On the @OneToMany side you most likely have
| @OneToMany(cascade = CascadeType.ALL, .....)
|
If you change to
@OneToMany(cascade = {CascadeType.MERGE,CascadeType.REMOVE}, ....)
It may solve your problem, at least it did for me. You will have to work out
if this will affect your application before doing so.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072260#4072260
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072260
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user