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

Bug 311230

Summary: When changing JPA facet level from 1.0 to 2.0, the persistence.xml is not updated
Product: [WebTools] Dali JPA Tools Reporter: Leonard Theivendra <theivend>
Component: GeneralAssignee: dali.general-inbox <dali.general-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: karenfbutzke, paul.fullbright
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Leonard Theivendra CLA 2010-04-30 14:54:11 EDT
Build Identifier: Dali 2.3

When the JPA facet on a project is changed from 1.0 to 2.0, the persistence.xml is not updated and remains at the 1.0 level.

Reproducible: Always

Steps to Reproduce:
1. Create a JPA 1.0 project
2. Modify the JPA facet level from 1.0 to 2.0 via the project's facet properties
3. persistence.xml remains at the 1.0 level

Not sure if this is a bug, or intended behaviour and the user is supposed to manually update the persistence.xml and orm descriptor files.
Comment 1 Paul Fullbright CLA 2010-04-30 15:06:55 EDT
Marking as a duplicate.


We're aware of this, and there is a way to document by document upgrade them to the latest version, but we didn't want to brute force it in case the user wanted to maintain the existing version of some/all of his files.  Implementing this will require a UI component for user choice.

*** This bug has been marked as a duplicate of bug 292826 ***
Comment 2 Karen Butzke CLA 2010-04-30 15:16:21 EDT
The current way to upgrade is right-click on the xml file 'JPA Tools' -> 'Upgrade Document Version'