]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Relation.hbm.xml
Salome HOME
b8a52df6f9ade16e58147b9a2e4d86d339c9bdb9
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Relation.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         <union-subclass name="org.splat.dal.bo.kernel.Relation"
13                 extends="org.splat.dal.bo.kernel.Any" abstract="true">
14
15                 <!-- Entity  owner -->
16                 <many-to-one name="owner" column="owner" access="field"
17                         not-null="true" />
18         <!-- Referenced entity
19         <many-to-one cascade="merge" name="to" column="refer" access="property"
20             not-null="true" /> -->
21         </union-subclass>
22 </hibernate-mapping>