Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: flushMode= MANUAL,
 when does commit happen? And other qu

scott.stark@jboss.org

2007-07-12


yes tested, it works....The @Destroy method is now like this....


| @Remove
|  @Destroy
|  public void destroy() {
|   if (!this.completedOrCanceled) {
|     if (this.motherEntity.getId() != null) {
|      entityManager.merge(this.recipe); // without merging there might be exception saying you are trying to remove a detached object.....
|      entityManager.remove(this.recipe);
|      entityManager.flush();
|     }
|   }
|  }
|

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063736
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.