Added test, that configure the JPA-mapping with XML-configuration-files
[jpa-converters] / src / test / resources / META-INF / persistence.xml
index f6fffeb..603cd73 100644 (file)
     </properties>
   </persistence-unit>
 
+  <persistence-unit name="xml">
+    <description>Classes are mapped with XML-configuration-files</description>
+    <mapping-file>META-INF/mapping.xml</mapping-file>
+    <exclude-unlisted-classes>true</exclude-unlisted-classes>
+    <properties>
+      <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
+      <property name="javax.persistence.jdbc.user" value="sa"/>
+      <property name="javax.persistence.jdbc.password" value=""/>
+      <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
+      <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+      <property name="hibernate.hbm2ddl.auto" value="create"/>
+      <property name="hibernate.show_sql" value="true"/>
+    </properties>
+  </persistence-unit>
+
 </persistence>