Update OneToMany collection from jsf page
dh2k7Sep 10 2010 — edited Sep 10 2010Hello,
I have a problem updating a OneToMany relationship from a jsf page.
I get an parent object via the local interface from the ejb, then I remove a child from the onetomany relationship and call my save method on the stateless bean which just merges the parent object back to the entitymanager.
But the child I've removed gets not deleted from the database (so its in the collection again after refresh).
So whats the preferred way to do this?
thanks
Dirk