Salome HOME
1707b8ebd5b5e3e74f23af0d883fba03d993a97c
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Study.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   <typedef name="ProgressState" class="org.splat.dal.bo.kernel.GenericEnumType">
12       <param name="enumClassName">org.splat.dal.bo.som.ProgressState</param>
13   </typedef>
14
15   <typedef name="Visibility"    class="org.splat.dal.bo.kernel.GenericEnumType">
16       <param name="enumClassName">org.splat.dal.bo.som.Visibility</param>
17   </typedef>
18
19   <union-subclass name="org.splat.dal.bo.som.Study" extends="org.splat.dal.bo.som.ProjectElement" table="study" lazy="false">
20   
21       <!-- String sid                  -->
22       <property name="sid"         column="sid"     access="field" not-null="true" />    
23   
24       <!-- int    docount              -->
25       <property name="docount"     column="docount" access="field" not-null="true" />    
26   
27       <!-- ProgressState state         -->
28       <property name="state" type="ProgressState" column="state" access="field" not-null="true" />    
29   
30       <!-- Visibility visibility       -->
31       <property name="visibility" type="Visibility" column="area" access="field" not-null="true" />    
32   
33       <!-- List<Scenario> scenarii     -->    
34       <list name="scenarii" lazy="false" cascade="delete-orphan" access="field">
35         <key         column="owner" not-null="true" />
36         <list-index  column="scendex"/>
37         <one-to-many class="org.splat.dal.bo.som.Scenario" />
38       </list>
39   
40       <!-- String version              -->
41       <property name="version" column="version" access="field" not-null="true" />    
42     
43       <!-- int    history              -->    
44       <property name="history" column="history" access="field" not-null="true" />
45
46   </union-subclass>
47
48 </hibernate-mapping>