Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315638

Summary: persistence.xml retains previous edits
Product: [WebTools] Dali JPA Tools Reporter: Andrew Mak <makandre>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: karenfbutzke, neil.hauge
Version: 2.3   
Target Milestone: 2.3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Mak CLA 2010-06-03 13:48:33 EDT
Steps to reproduce the problem:

1. Create a JPA project
2. Export the JPA project as an archive file (will be imported back later)
3. Make some edits to persistence.xml and save the file (e.g. add a description)
4. Delete the project, ensure it is deleted from file system also.
5. Import existing project from archive file created in step 2.

If you view the persistence.xml file from within eclipse, it will contain the changes made in step 3, which it should not (I verified the file doesn't actually have those changes on the file system by opening it in something like notepad).  The only way I've found that syncs the contents shown in eclipse with what's on the file system is by re-launching the workbench.
Comment 1 Neil Hauge CLA 2010-06-09 18:01:04 EDT
Investigate for 2.3.1.
Comment 2 Karen Butzke CLA 2010-06-28 13:18:35 EDT
Andrew,
I cannot reproduce this issue, what build of Dali were you using when you found this bug? When you say 'view the persistence.xml file from within eclipse' I assume you mean using the persistence.xml editor?
Comment 3 Andrew Mak CLA 2010-06-28 14:39:04 EDT
I forgot which build I was using.  I just grabbed the latest Helios packages and cannot reproduce it either, so I'm fine with just closing this defect.  Thanks.
Comment 4 Karen Butzke CLA 2010-07-20 08:51:45 EDT
closing