  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Re: Removing a detached instance | - Re: Removing a detached instance 2007-07-17 - By idefix-free
Back Still the same error:
| public String delete() | { | String id = FacesContext.getCurrentInstance() | .getExternalContext().getRequestParameterMap() | .get("selectedId"); | selectedSpielplatz = dao.findById(Long.valueOf(id), false); | selectedSpielplatz=dao.merge(selectedSpielplatz); | dao.makeTransient(selectedSpielplatz); | selectedSpielplatz=null; | return "list"; | } | But I dont understand, that if I load the object(selectedspielplatz) why it is not managed. Why are the objects always detached? I tried the same thing with glassfish and toplink and I haven't this problem. Is it really necessary always to merge before making an operation, or is it possible to reconfigure something, maybe entity manager per session?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4064860#4064860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4064860 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |