Salome HOME
<jsp:param ... > parameters are removed from the title bar
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Relations.hbm.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
3 <!--
4   - Mapping of the Relation class hierarchy.
5   - The entire hierarchy is mapped to one single table using a String discriminator.
6   -
7   - @author    Daniel Brunier-Coulin
8   - @copyright OPEN CASCADE 2012
9   -->
10
11 <hibernate-mapping>
12
13 <!-- Uses relation
14   -->
15     <union-subclass name="org.splat.dal.bo.som.UsesRelation" extends="org.splat.dal.bo.kernel.Relation" table="uses_rel">
16                 <many-to-one name="refer" column="refer" access="field" not-null="true" />
17     </union-subclass>
18
19 <!-- UsedBy relation
20   -->
21     <union-subclass name="org.splat.dal.bo.som.UsedByRelation" extends="org.splat.dal.bo.kernel.Relation" table="usedby_rel">
22                 <many-to-one name="refer" column="refer" access="field" not-null="true" />
23     </union-subclass>
24
25 <!-- Versions relation
26   -->
27     <union-subclass name="org.splat.dal.bo.som.VersionsRelation" extends="org.splat.dal.bo.kernel.Relation" table="versions_rel">
28         <many-to-one name="refer" column="refer" access="field" not-null="true" />
29     </union-subclass>
30
31 <!-- Converts relation
32   -->
33     <union-subclass name="org.splat.dal.bo.som.ConvertsRelation" extends="org.splat.dal.bo.kernel.Relation" table="converts_rel">
34         <many-to-one name="refer" column="refer" access="field" not-null="true" />
35     </union-subclass>
36
37 <!-- Contributor actor relation
38   -->
39     <union-subclass name="org.splat.dal.bo.som.ContributorRelation" extends="org.splat.dal.bo.kernel.Relation" table="contributor_rel">
40         <many-to-one name="refer" column="refer" access="field" not-null="true" />
41     </union-subclass>
42
43 <!-- ValidationCycle relation
44   -->
45     <union-subclass name="org.splat.dal.bo.som.ValidationCycleRelation" extends="org.splat.dal.bo.kernel.Relation" table="cycle_rel">
46 <!--       <many-to-one name="refer" column="refer" unique="true" cascade="all-delete-orphan" access="field" not-null="true" />-->
47                 <many-to-one name="refer" column="refer" unique="true" access="field" not-null="true" />
48     </union-subclass>
49
50 <!-- Stamp relation
51   -->
52     <union-subclass name="org.splat.dal.bo.som.StampRelation" extends="org.splat.dal.bo.kernel.Relation" table="stamp_rel">
53 <!--      <many-to-one name="refer" column="refer" unique="true" cascade="all-delete-orphan" access="field" not-null="true" />-->
54                 <many-to-one name="refer" column="refer" unique="true" access="field" not-null="true" />
55     </union-subclass>
56
57 </hibernate-mapping>