Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315638 - persistence.xml retains previous edits
Summary: persistence.xml retains previous edits
Status: CLOSED WORKSFORME
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.3.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 13:48 EDT by Andrew Mak CLA
Modified: 2010-07-20 08:51 EDT (History)
2 users (show)

See Also:


Attachments

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