Mappings from JPA-mapping-files are considered
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / src / main / resources / META-INF / orm.xml
diff --git a/src/it/multiple-persistence-units/src/main/resources/META-INF/orm.xml b/src/it/multiple-persistence-units/src/main/resources/META-INF/orm.xml
new file mode 100644 (file)
index 0000000..fa5412b
--- /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_1_0.xsd"
+    version="1.0">
+  <description>My First JPA XML Application</description>
+  <package>a</package> 
+  <entity class="a.Employee" name="Employee">    
+    <table name="EMPLOYEETABLE"/>
+    <attributes>
+      <id name="empId">
+        <generated-value strategy="TABLE"/>
+      </id>
+      <basic name="empName">
+        <column name="EMP_NAME" length="100"/>
+      </basic>
+      <basic name="empSalary">
+      </basic>
+    </attributes>
+   </entity>
+</entity-mappings>