"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...