Are you sure you are removing the correct instance from the list of
designs? You example code uses "persistentDesign" and "design". Are
you sure you are merging the correct object into the Persistence Context?
--Gordon
polvo wrote:
> 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.
>