Community
Participate
Working Groups
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">
I'm unable to reproduce this. Is it possible that adopter code is resulting in this behavior?
That's right, it was a problem in OEPE code.
Not Eclipse code.