[jboss-user] [EJB 3.0] - Re: Removing a detached instance

waynebaylor do-not-reply at jboss.com
Mon Jul 16 17:31:00 EDT 2007


The call to merge() returns a managed copy of the entity. You should pass this reference to makeTransient().


  | ...
  | selectedSpielplatz = dao.findById(Long.valueOf(id), false);
  | Spielplatz mergedObject = dao.merge(selectedSpielplatz);
  | dao.makeTransient(mergedObject);
  | ...

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

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



More information about the jboss-user mailing list