Mappings from JPA-mapping-files are considered
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / src / main / resources / META-INF / customer.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
4
5     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
7     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm 
8
9         http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
10
11     version="1.0">
12
13     
14
15     <!-- id and name mapped in superclass ORM -->    
16
17     <entity class="b.Customer"
18
19         access="FIELD">
20
21         <table name="HMIG_CUSTOMER"/>
22
23         <attributes>
24
25             <basic name="email">
26
27                 <column length="32"/>
28
29             </basic>
30
31             <basic name="level">
32
33                 <column length="8"/>
34
35                 <enumerated>STRING</enumerated>
36
37             </basic>
38
39             
40
41             <one-to-many name="purchases" mapped-by="customer"/>
42
43         </attributes>
44
45     </entity>
46
47 </entity-mappings>
48