Rebuild the full mapping from persistence-jpa-1.5.1 to reproduce the bug
[jpa-converters] / src / test / resources / META-INF / persistence.xml
index a02aed6..9f84f3c 100644 (file)
       <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-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-unit name="data-model">
+    <description>Example, taken from the data-model package</description>
+    <mapping-file>META-INF/coordinates.xml</mapping-file>
+    <mapping-file>META-INF/address.xml</mapping-file>
+    <mapping-file>META-INF/link.xml</mapping-file>
+    <mapping-file>META-INF/email.xml</mapping-file>
+    <mapping-file>META-INF/number.xml</mapping-file>
+    <mapping-file>META-INF/openinghours.xml</mapping-file>
+    <mapping-file>META-INF/nodes.xml</mapping-file>
+    <mapping-file>META-INF/role.xml</mapping-file>
+    <mapping-file>META-INF/price.xml</mapping-file>
+    <mapping-file>META-INF/nodestate.xml</mapping-file>
+    <mapping-file>META-INF/dimensions.xml</mapping-file>
+    <mapping-file>META-INF/node.xml</mapping-file>
+    <mapping-file>META-INF/category.xml</mapping-file>
+    <mapping-file>META-INF/media.xml</mapping-file>
+    <mapping-file>META-INF/geoplace.xml</mapping-file>
+    <mapping-file>META-INF/country.xml</mapping-file>
+    <mapping-file>META-INF/state.xml</mapping-file>
+    <mapping-file>META-INF/city.xml</mapping-file>
+    <mapping-file>META-INF/district.xml</mapping-file>
+    <mapping-file>META-INF/region.xml</mapping-file>
+    <mapping-file>META-INF/legalperson.xml</mapping-file>
+    <mapping-file>META-INF/person.xml</mapping-file>
+    <mapping-file>META-INF/organization.xml</mapping-file>
+    <mapping-file>META-INF/group.xml</mapping-file>
+    <mapping-file>META-INF/exhibition.xml</mapping-file>
+    <mapping-file>META-INF/custom.xml</mapping-file>
+    <mapping-file>META-INF/place.xml</mapping-file>
+    <mapping-file>META-INF/venue.xml</mapping-file>
+    <mapping-file>META-INF/location.xml</mapping-file>
+    <mapping-file>META-INF/subunit.xml</mapping-file>
+    <mapping-file>META-INF/event.xml</mapping-file>
+    <mapping-file>META-INF/date.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>