]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/som/ProjectElement.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / ProjectElement.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 properties common to Study and Scenario
5   -
6   - @author    Daniel Brunier-Coulin
7   - @copyright OPEN CASCADE 2012
8   -->
9
10 <hibernate-mapping>
11
12 <!--   <class name="org.splat.dal.bo.som.ProjectElement" abstract="true"> -->
13   <union-subclass name="org.splat.dal.bo.som.ProjectElement" extends="org.splat.dal.bo.kernel.Entity" abstract="true">
14   
15 <!-- Properties inherited from Entity
16   -->
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     <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
21       <key         column="owner" />
22       <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
23     </set>
24     <set name="relations" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
25       <key         column="owner" />
26       <one-to-many class="org.splat.dal.bo.kernel.Relation" />
27     </set> -->
28   
29 <!-- ProjectElement properties common to Study and Scenario
30   -->
31     <property    name="title"    column="title"    access="field" not-null="true" />
32     <property    name="credate"  column="credate"  access="field" not-null="true" />
33     <property    name="lasdate"  column="lasdate"  access="field" not-null="true" />
34     <many-to-one name="manager"  column="manager"  access="field" not-null="true" />
35     <list name="contex" table="projext" lazy="false" access="field">
36       <key          column="owner" />
37       <list-index   column="ordex" />
38       <many-to-many column="rid" class="org.splat.dal.bo.som.SimulationContext" />
39     </list>
40     <set name="docums" inverse="true" lazy="false" order-by="`rid` desc" cascade="all-delete-orphan" access="field">
41       <key column="owner" />
42       <one-to-many class="org.splat.dal.bo.som.Publication" />
43     </set>
44   
45   </union-subclass>
46
47 </hibernate-mapping>