]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Relation.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[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
13 <!--   <class name="org.splat.dal.bo.kernel.Relation" abstract="true" table="relation"> -->
14   <class name="org.splat.dal.bo.kernel.Relation" abstract="true">
15
16     <!-- int     rid   -->    
17 <!--     <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
18       <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
19     </id>-->
20         <id name="rid" column="rid" access="field">
21         <generator class="org.hibernate.id.enhanced.SequenceStyleGenerator">
22                 <param name="sequence_name">relation_id</param>
23         </generator>
24         </id>
25         <!-- <discriminator column="name" type="string"/>-->
26
27     <!-- Set<Attribute> attributes -->
28     <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
29       <key         column="owner" />
30       <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
31     </set>
32
33     <!-- Entity  owner -->    
34     <many-to-one name="owner" column="owner" access="field" not-null="true" />
35
36         <!-- <property name="to" column="refer" access="property" not-null="true" />-->
37   </class>
38
39 </hibernate-mapping>