Mappings from JPA-mapping-files are considered
[hibernate-maven-plugin] / src / it / multiple-persistence-units / src / main / resources / META-INF / orm.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <entity-mappings
3     xmlns="http://java.sun.com/xml/ns/persistence/orm"
4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
6     version="1.0">
7   <description>My First JPA XML Application</description>
8   <package>a</package> 
9   <entity class="a.Employee" name="Employee">    
10     <table name="EMPLOYEETABLE"/>
11     <attributes>
12       <id name="empId">
13         <generated-value strategy="TABLE"/>
14       </id>
15       <basic name="empName">
16         <column name="EMP_NAME" length="100"/>
17       </basic>
18       <basic name="empSalary">
19       </basic>
20     </attributes>
21    </entity>
22 </entity-mappings>