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

Bug 312992

Summary: CREATING JPA 2.0 PROJECT GENERATES1.0 SCHEMA IN PERSISTENCE.XML
Product: [WebTools] Dali JPA Tools Reporter: Ram Venkataswamy <ram.venkataswamy>
Component: GeneralAssignee: dali.general-inbox <dali.general-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: danny.ju, neil.hauge
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.