Mappings from JPA-mapping-files are considered
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / src / main / resources / META-INF / customer.xml
diff --git a/src/it/multiple-persistence-units/src/main/resources/META-INF/customer.xml b/src/it/multiple-persistence-units/src/main/resources/META-INF/customer.xml
new file mode 100644 (file)
index 0000000..c21eabc
--- /dev/null
@@ -0,0 +1,48 @@
+<?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">
+
+    
+
+    <!-- id and name mapped in superclass ORM -->    
+
+    <entity class="b.Customer"
+
+        access="FIELD">
+
+        <table name="HMIG_CUSTOMER"/>
+
+        <attributes>
+
+            <basic name="email">
+
+                <column length="32"/>
+
+            </basic>
+
+            <basic name="level">
+
+                <column length="8"/>
+
+                <enumerated>STRING</enumerated>
+
+            </basic>
+
+            
+
+            <one-to-many name="purchases" mapped-by="customer"/>
+
+        </attributes>
+
+    </entity>
+
+</entity-mappings>
+