Mappings from JPA-mapping-files are considered
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / src / main / resources / META-INF / person.xml
diff --git a/src/it/multiple-persistence-units/src/main/resources/META-INF/person.xml b/src/it/multiple-persistence-units/src/main/resources/META-INF/person.xml
new file mode 100644 (file)
index 0000000..79a92ed
--- /dev/null
@@ -0,0 +1,37 @@
+<?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_1_0.xsd"
+
+    version="1.0">
+
+    
+
+    <mapped-superclass class="b.Person"
+
+        access="FIELD">
+
+        <attributes>
+
+            <id name="id">
+
+                <generated-value strategy="IDENTITY"/>
+
+            </id>
+
+            <basic name="name" optional="false">
+
+                <column length="32"/>
+
+            </basic>
+
+        </attributes>
+
+    </mapped-superclass>
+
+</entity-mappings>