]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.hibernate/src/main/resources/org/argeo/slc/hibernate/test/tree/PartSubList.hbm.xml
91f6ec4514877453c70ca593b19ecc059026003a
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.hibernate / src / main / resources / org / argeo / slc / hibernate / test / tree / PartSubList.hbm.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
20 <!DOCTYPE hibernate-mapping PUBLIC
21 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
22 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
23 <hibernate-mapping package="org.argeo.slc.core.test.tree">
24 <class name="PartSubList" table="PART_SUB_LIST">
25 <cache usage="nonstrict-read-write" />
26 <id name="tid" column="T_ID">
27 <generator class="native" />
28 </id>
29 <list name="parts" cascade="all" table="PARTS_LIST">
30 <cache usage="nonstrict-read-write" />
31 <key column="PART_SUBLIST_ID" />
32 <list-index column="INDX" />
33 <many-to-many
34 class="org.argeo.slc.core.test.SimpleResultPart" column="PART_ID"
35 unique="true" />
36 </list>
37 </class>
38 </hibernate-mapping>