This content has been marked as final.
Show 2 replies
-
1. Re: TestNG: em.remove does nothing
fernando_jmt Mar 20, 2008 6:41 PM (in response to malex)Is your MyUser
user
managed by the persistence context?If not, try this:
public void removeUser(MyUser user) { log.fatal("removeUser"); em.remove(em.merge(user)); log.fatal("DONE removeUser"); user=null; }
-
2. Re: TestNG: em.remove does nothing
malex Mar 28, 2008 9:34 AM (in response to malex)Yes, the MyUser instance should be managed by the persistence context (I just retrieve it in the statement before in the test routine).
Your suggested additional merge does not bring any cure.
I am still investigating further but thanks meanwhile!