]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/som/Scenario.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Scenario.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   -
5   - @author    Daniel Brunier-Coulin
6   - @copyright OPEN CASCADE 2012
7   -->
8
9 <hibernate-mapping>
10
11   <union-subclass name="org.splat.dal.bo.som.Scenario" extends="org.splat.dal.bo.som.ProjectElement" table="scenario" lazy="false">
12   
13       <!-- Study owner                 -->    
14       <many-to-one name="owner" column="owner" insert="false" update="false" access="field" not-null="true" />
15   
16       <!-- int   sid                   -->
17       <property    name="sid"   column="sid"   access="field" not-null="true" />    
18   
19       <!-- User  cuser                 -->    
20       <many-to-one name="cuser" column="cuser" access="field" />
21
22       <!-- Set<KnowledgeElement> kelms -->
23       <set name="kelms" inverse="true" lazy="false" order-by="`type`,`date` asc" cascade="all-delete-orphan" access="field">
24         <key column="owner" />
25         <one-to-many class="org.splat.dal.bo.som.KnowledgeElement" />
26       </set>
27   
28   </union-subclass>
29
30 </hibernate-mapping>