31b2214bf6d546272cec96805a8147582283ffd0
[jpa-converters] / date.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_2_1.xsd"
6     version="2.1">
7
8   <package>de.juplo.yourshouter.api.model</package>
9   <entity class="Date" access="FIELD">
10     <discriminator-value>17</discriminator-value>
11     <attributes>
12       <basic name="teaser">
13         <column length="1023"/>
14       </basic>
15       <transient name="text"/><!-- TODO! -->
16       <many-to-one name="event">
17         <cascade>
18           <cascade-all/>
19         </cascade>
20       </many-to-one>
21       <many-to-one name="location">
22         <cascade>
23           <cascade-all/>
24         </cascade>
25       </many-to-one>
26       <many-to-one name="subunit">
27         <cascade>
28           <cascade-all/>
29         </cascade>
30       </many-to-one>
31       <element-collection name="contributors"/>
32       <element-collection name="emails"/>
33       <element-collection name="links"/>
34       <element-collection name="numbers"/>
35       <many-to-many name="media">
36         <join-table name="Node_Media">
37           <join-column name="source" referenced-column-name="source"/>
38           <join-column name="nodeType" referenced-column-name="nodeType"/>
39           <join-column name="nodeId" referenced-column-name="id"/>
40         </join-table>
41         <cascade>
42           <cascade-all/>
43         </cascade>
44       </many-to-many>
45       <one-to-many name="prices">
46         <join-column name="source" referenced-column-name="source"/>
47         <join-column name="nodeType" referenced-column-name="nodeType"/>
48         <join-column name="nodeId" referenced-column-name="id"/>
49         <cascade>
50           <cascade-all/>
51         </cascade>
52       </one-to-many>
53     </attributes>
54   </entity>
55
56 </entity-mappings>