3aa9d21d3a4cf50f2a58c65ed346b51d8798d1e6
[jpa-converters] / location.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="Location" access="FIELD">
10     <discriminator-value>14</discriminator-value>
11     <attributes>
12       <basic name="uri">
13         <column length="511"/>
14       </basic>
15       <many-to-many name="categories">
16         <join-table name="Location_Category"/>
17         <cascade>
18           <cascade-all/>
19         </cascade>
20       </many-to-many>
21       <many-to-many name="media">
22         <join-table name="Node_Media">
23           <join-column name="source" referenced-column-name="source"/>
24           <join-column name="nodeType" referenced-column-name="nodeType"/>
25           <join-column name="nodeId" referenced-column-name="id"/>
26         </join-table>
27         <cascade>
28           <cascade-all/>
29         </cascade>
30       </many-to-many>
31       <element-collection name="hours"/>
32       <element-collection name="emails"/>
33       <element-collection name="links"/>
34       <element-collection name="numbers"/>
35     </attributes>
36   </entity>
37
38 </entity-mappings>