[jboss-user] [EJB 3.0] - Simple remove wont work. Detached instance

trashhash do-not-reply at jboss.com
Thu Jan 11 11:24:11 EST 2007


Hi, Im uable to remove an object/post from database by using EntityManager.remove(). The console says Removing a detached instance. But post remainsin db. Is it even possible to remove a detached object? Im not getting why its detached, my code is simple.


  | User user = (User) service.getUserById(34);
  | service.deleteUser(user);
  | 

where would my session/EntityManager be lost?

Thanks for your time.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000523#4000523

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000523



More information about the jboss-user mailing list