Fixed some bugs in the persistence.xml, used for test-cases
authorKai Moritz <kai@juplo.de>
Tue, 15 Aug 2017 18:17:08 +0000 (20:17 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 16 Aug 2017 11:36:33 +0000 (13:36 +0200)
 * Corrected the version from 1.0 to 2.1.
 * Removed unnecessary class-entries.
 * Added description.

src/test/resources/META-INF/persistence.xml

index 1de7f0a..a02aed6 100644 (file)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <persistence
-    xmlns="http://java.sun.com/xml/ns/persistence"
+    xmlns="http://xmlns.jcp.org/xml/ns/persistence"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    version="1.0">
+    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
+    version="2.1">
 
   <persistence-unit name="annotated">
-    <class>de.juplo.jpa.converters.OffsetDateTime</class>
-    <class>de.juplo.jpa.converters.ZonedDateTime</class>
+    <description>Classes are mapped with annotations</description>
     <properties>
       <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
       <property name="javax.persistence.jdbc.user" value="sa"/>