Hello,
I have the following problem:
I have a User entity with a ManyToMany relationship to Group, persist and merge
cascading.
I have a UserMgrBean session bean to access the Users.
If i delete a User with a relationship by calling
(umgr being a UserMgr instance)
| umgr.delete(umgr.get(1));
|
It works fine, user is deleted along with relationship.
However, in UserMgr i also have a method that actually does the same...
| public void DWRDelete(int userId) {
| manager.remove(manager.find(User.class, userId));
| }
|
... but results in this error:
| org.hibernate.ObjectDeletedException: deleted entity passed to persist:
[ejbframe.entity.User#<null>]
If i call DWRDelete on a User without a relationship it works.
That method is for when i access the bean via javascript and i cant do without
it.
How can i fix this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953403#3953403
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953403
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user