]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Entity.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 root abstract class supporting relations.
5   -
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.Entity"     abstract="true"> -->
14   <union-subclass name="org.splat.dal.bo.kernel.Entity" abstract="true" extends="org.splat.dal.bo.kernel.Any" table="entity">
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
21     <!-- Set<Attribute> attributes -->
22 <!--    <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
23       <key         column="owner" />
24       <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
25     </set> -->
26
27     <!-- Set<Relation>  relations  -->
28     <set name="relations" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
29       <key         column="owner" />
30       <one-to-many class="org.splat.dal.bo.kernel.Relation" />
31     </set>
32
33   </union-subclass>
34
35 </hibernate-mapping>