]> git.argeo.org Git - gpl/argeo-slc.git/blob - TreeTestResult.hbm.xml
6144656e73bec96f4dfcf313acfeb906ca4b94a6
[gpl/argeo-slc.git] / TreeTestResult.hbm.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2007-2012 Mathieu Baudier
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <!DOCTYPE hibernate-mapping PUBLIC
20 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
21 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
22 <hibernate-mapping package="org.argeo.slc.core.test.tree">
23 <class name="TreeTestResult" table="TREE_TEST_RESULT">
24 <cache usage="read-write" />
25 <id name="uuid" column="UUID" />
26
27 <property name="closeDate" column="CLOSE_DATE" type="timestamp"
28 not-null="false" />
29
30 <map name="attributes" table="TTR_ATTRS_MAP" cascade="all" lazy="false"
31 sort="natural">
32 <cache usage="read-write" />
33 <key column="PARENT_ID" />
34 <map-key column="ATTR_NAME" type="string" />
35 <element column="NAME" type="string" />
36 </map>
37
38 <map name="resultParts" table="RESULT_PARTS_MAP" cascade="all"
39 sort="natural">
40 <cache usage="nonstrict-read-write" />
41 <key column="PARENT_ID" />
42 <composite-map-key class="org.argeo.slc.core.structure.tree.TreeSPath">
43 <key-property name="asUniqueString" column="PATH" />
44 </composite-map-key>
45 <many-to-many class="PartSubList" column="PART_SUB_LIST_ID"
46 unique="true" />
47 </map>
48
49 <map name="elements" table="RESULT_ELEMENTS_MAP" cascade="all"
50 sort="natural">
51 <cache usage="nonstrict-read-write" />
52 <key column="PARENT_ID" />
53 <composite-map-key class="org.argeo.slc.core.structure.tree.TreeSPath">
54 <key-property name="asUniqueString" column="PATH" />
55 </composite-map-key>
56 <many-to-many class="org.argeo.slc.core.structure.SimpleSElement"
57 column="ELEMENT_ID" unique="true" />
58 </map>
59
60 <list name="attachments" table="RESULTS_ATTACHMENTS" cascade="all">
61 <cache usage="nonstrict-read-write" />
62 <key column="RESULT_ATTACHMENT_ID" />
63 <list-index column="INDX" />
64 <many-to-many class="org.argeo.slc.core.attachment.SimpleAttachment"
65 column="ATTACHMENT_ID" unique="true" />
66 </list>
67 </class>
68 </hibernate-mapping>