Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311230 - When changing JPA facet level from 1.0 to 2.0, the persistence.xml is not updated
Summary: When changing JPA facet level from 1.0 to 2.0, the persistence.xml is not upd...
Status: CLOSED DUPLICATE of bug 292826
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 14:54 EDT by Leonard Theivendra CLA
Modified: 2010-04-30 15:16 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 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'