]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Any.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Any.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 dynamic attributes.
5   - All objects instance of a subclass of Any are uniquely identified by the rid primary key through the IDGenerator identifier generator class.
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.Any" abstract="true"> -->
14   <union-subclass name="org.splat.dal.bo.kernel.Any" extends="org.splat.dal.bo.kernel.Persistent" abstract="true" table="any">
15     <!-- int     rid   -->    
16 <!--     <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
17       <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
18     </id> -->
19
20 <!--     <id name="rid" column="rid" access="field">
21       <generator class="native"/>
22     </id>-->
23
24     <!-- Set<Attribute> attributes -->
25     <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
26       <key         column="owner" />
27       <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
28     </set>
29
30   </union-subclass>
31
32 </hibernate-mapping>