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" >
4 - Mapping of the Relation class hierarchy.
5 - The entire hierarchy is mapped to one single table using a String discriminator.
7 - @author Daniel Brunier-Coulin
8 - @copyright OPEN CASCADE 2012
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" />
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" />
25 <!-- Versions relation
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" />
31 <!-- Converts relation
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" />
37 <!-- Contributor actor relation
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" />
43 <!-- ValidationCycle relation
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" />
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" />