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

john_woo@canada.com do-not-reply at jboss.com
Tue Jul 10 15:17:49 EDT 2007

"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

More information about the jboss-user mailing list