persistence@glassfish.java.net

removing item from collection

From: polvo <solo.polvo_at_gmail.com>
Date: Tue, 4 Nov 2008 19:25:07 -0800 (PST)

Hey, when I remove a design from a project, the relationship is deleted from
the database but not from the persistence context - it still appears as part
of the project unless I restart the server. What am I doing wrong?


project.getDesigns().remove(persistentDesign);
                design.setProject(null);
                project = getDao().update(project);
                persistentDesignManager.updateDesign((PhotovoltaicGridTieSystemDesign)
design);

thx in advance.
-- 
View this message in context: http://www.nabble.com/removing-item-from-collection-tp20335689p20335689.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.