Bug 235619

Summary: removing persistence unit from persistence.xml, structure views not updated correctly
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 2.0Flags: neil.hauge: review+
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch - HEAD none

Description Karen Butzke CLA 2008-06-04 11:16:26 EDT
If you remove the persistence unit from the persistence.xml the java and orm.xml files should no longer have anything structure in the JPA structure view.  If you were to close and reopen eclipse this is what you would see, and if you then add the persistence unit back you see the structure reappear.

If you try to edit the source for either the orm.xml or the java you will not see updates to the jpa details or structure view if you are in this state without the persistence unit.
Comment 1 Karen Butzke CLA 2008-06-11 18:10:30 EDT
Created attachment 104567 [details]
proposed patch - HEAD

Simple fix to dispose() the PersistenceUnit when it is removed, added some tests for this case as well
Comment 2 Karen Butzke CLA 2008-07-09 16:39:36 EDT
checked patch in to HEAD, not branch yet for 2.0.1
Comment 3 Neil Hauge CLA 2008-08-21 17:27:07 EDT
Verified in wtp-sdk-R-3.0.1-20080818032401.