]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/src/main/resources/org/argeo/slc/hibernate/structure/tree/TreeSRegistry.hbm.xml
TreeTestResult persistence independent from TreeSPath and registry (at last!)
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / resources / org / argeo / slc / hibernate / structure / tree / TreeSRegistry.hbm.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE hibernate-mapping PUBLIC
3 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5 <hibernate-mapping package="org.argeo.slc.core.structure.tree">
6 <class name="TreeSRegistry" table="TREE_SREGISTRY">
7 <id name="tid" column="T_ID">
8 <generator class="native" />
9 </id>
10
11 <property name="status" column="STATUS" not-null="true"
12 unique="true" />
13
14 <map name="elements" table="REGISTRY_ELEMENTS" cascade="all"
15 lazy="false" sort="natural">
16 <key column="PARENT_ID" />
17 <map-key-many-to-many class="TreeSPath" column="PATH" />
18
19 <many-to-many
20 class="org.argeo.slc.core.structure.SimpleSElement"
21 column="ELEMENT_ID" unique="true" lazy="false" />
22 </map>
23
24 </class>
25 </hibernate-mapping>