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));
public void DWRDelete(int userId) { manager.remove(manager.find(User.class, userId)); }
org.hibernate.ObjectDeletedException: deleted entity passed to persist: [ejbframe.entity.User#<null>]
if i go through the user's groups and delete the user from them before i delete the user it works fine. Looks like it was repersisted through the cascading..