Author: kwsutter
Date: Mon Apr 15 15:01:36 2013
New Revision: 1468106
URL: http://svn.apache.org/r1468106
Log:
OPENJPA-2172. Modified the persistence.xml files to indicate the use of the
2.0 XSD files (in order to properly detect and support the <validation-mode>
element).
Modified:
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.liberty.xml
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.was.xml
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
Modified:
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.liberty.xml
URL:
http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.liberty.xml?rev=1468106&r1=1468105&r2=1468106&view=diff
==============================================================================
---
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.liberty.xml
(original)
+++
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.liberty.xml
Mon Apr 15 15:01:36 2013
@@ -19,7 +19,9 @@
-->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- version="1.0">
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
+ http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+ version="2.0">
<persistence-unit name="OpenBooks">
<jta-data-source>java:comp/env/jdbc/OpenBooks</jta-data-source>
<non-jta-data-source>java:comp/env/jdbc/NonTxOpenBooks</non-jta-data-source>
Modified:
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.was.xml
URL:
http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.was.xml?rev=1468106&r1=1468105&r2=1468106&view=diff
==============================================================================
---
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.was.xml
(original)
+++
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.jee.was.xml
Mon Apr 15 15:01:36 2013
@@ -19,7 +19,9 @@
-->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- version="1.0">
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
+ http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+ version="2.0">
<persistence-unit name="OpenBooks">
<jta-data-source>jdbc/OpenBooks</jta-data-source>
<non-jta-data-source>jdbc/NonTxOpenBooks</non-jta-data-source>
Modified:
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
URL:
http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml?rev=1468106&r1=1468105&r2=1468106&view=diff
==============================================================================
---
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
(original)
+++
openjpa/branches/2.2.x/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
Mon Apr 15 15:01:36 2013
@@ -19,6 +19,8 @@
-->
<persistence 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"
version="2.0">
<persistence-unit name="OpenBooks">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>