Java Mailing List Archive

http://www.junlu.com/

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

[jboss-user] [EJB 3.0] - Re: what can be done for not real remove

scott.stark@jboss.org

2007-07-10


"Wolfgang Knauf" wrote : You remove the phone from the person's phone list, then save the person:
|
| person.getPhones().remove(phone);
|  | entityManager.merge (person);
|
| Hope this helps
|
| Wolfgang

The API for merge is from http://www.hibernate.org/hib_docs/ejb3-api/
merge(T entity)
  Merge the state of the given entity into the current persistence context.

but how about restart jboss, will that person still have the "deleted" phone?

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

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