Rebuild the full mapping from persistence-jpa-1.5.1 to reproduce the bug
[jpa-converters] / src / test / resources / META-INF / source.xml
diff --git a/src/test/resources/META-INF/source.xml b/src/test/resources/META-INF/source.xml
new file mode 100644 (file)
index 0000000..2371400
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings
+    xmlns="http://java.sun.com/xml/ns/persistence/orm"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_1.xsd"
+    version="2.1">
+
+  <package>de.juplo.yourshouter.api.persistence</package>
+  <entity class="Source" access="FIELD">
+    <table>
+      <index name="uri_sources" unique="true" column-list="uri"/>
+    </table>
+    <attributes>
+      <id name="uri">
+        <column length="191" column-definition="VARCHAR(191)"/>
+      </id>
+      <element-collection name="types"/>
+      <element-collection name="features"/>
+    </attributes>
+  </entity>
+
+</entity-mappings>