713fa2d970aa6ecab8cbc82edacaf011881ea465
[jpa-converters] / subunit.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="Subunit" access="FIELD">
10     <discriminator-value>15</discriminator-value>
11     <attributes>
12       <basic name="teaser">
13         <column length="1023"/>
14       </basic>
15       <basic name="text">
16         <column length="4095"/>
17       </basic>
18       <many-to-one name="parent">
19         <cascade>
20           <cascade-all/>
21         </cascade>
22       </many-to-one>
23       <many-to-many name="media">
24         <join-table name="Node_Media">
25           <join-column name="source" referenced-column-name="source"/>
26           <join-column name="nodeType" referenced-column-name="nodeType"/>
27           <join-column name="nodeId" referenced-column-name="id"/>
28         </join-table>
29         <cascade>
30           <cascade-all/>
31         </cascade>
32       </many-to-many>
33     </attributes>
34   </entity>
35
36 </entity-mappings>