Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312992 - CREATING JPA 2.0 PROJECT GENERATES1.0 SCHEMA IN PERSISTENCE.XML
Summary: CREATING JPA 2.0 PROJECT GENERATES1.0 SCHEMA IN PERSISTENCE.XML
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 19:24 EDT by Ram Venkataswamy CLA
Modified: 2010-05-18 09:27 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 Ram Venkataswamy CLA 2010-05-14 19:24:24 EDT
Build Identifier:  I20100429-1549

CREATING JPA 2.0 PROJECT GENERATES1.0 SCHEMA IN PERSISTENCE.XML

Reproducible: Always

Steps to Reproduce:
NOTE: With some miracle i was able to create (ONCE) JPA 2.0 project with 2.0
schema. All subsequent attempt results in 1.0 schema, i even tried with a new
installation.

- Create a JPA 2.0 project (EclipseLink 2.0.x platform)

- open persistence.xml

<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">


Expected:

<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
Comment 1 Neil Hauge CLA 2010-05-17 10:26:44 EDT
I'm unable to reproduce this.  Is it possible that adopter code is resulting in this behavior?
Comment 2 Danny Ju CLA 2010-05-17 19:18:37 EDT
That's right, it was a problem in OEPE code.
Comment 3 Neil Hauge CLA 2010-05-18 09:27:30 EDT
Not Eclipse code.