Bug 235619 - removing persistence unit from persistence.xml, structure views not updated correctly
Summary: removing persistence unit from persistence.xml, structure views not updated c...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 11:16 EDT by Karen Butzke CLA
Modified: 2008-08-21 17:27 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
proposed patch - HEAD (3.67 KB, patch)
2008-06-11 18:10 EDT, Karen Butzke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.