]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/som/SimulationContext.hbm.xml
Salome HOME
StepServiceImpl doesn't use Database class anymore.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / SimulationContext.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   <class name="org.splat.dal.bo.som.SimulationContext" table="contelm">
12   
13 <!-- Properties inherited Persistent
14   -->
15     <id name="rid" column="rid" access="field">
16       <generator class="native"/>
17     </id>
18     
19 <!-- SimulationContext properties
20   -->
21     <!-- SimulationContextType  type -->    
22     <many-to-one name="type"  column="type"  access="field" not-null="true" />
23     
24     <!-- int     step        -->    
25     <property    name="step"  column="step"  access="field" not-null="true" />
26
27     <!-- ProgressState state -->
28     <property name="state" column="state" type="ProgressState" access="field" not-null="true" />    
29     
30     <!-- String  value       -->    
31     <property    name="value" column="value" type="text" access="field" not-null="true" />
32     
33     <!-- int     counter     -->    
34     <property name="counter"  column="counter" access="field" not-null="true" />
35   </class>
36
37 <!-- Class SimulationContextType
38   -->
39   <class name="org.splat.dal.bo.som.SimulationContextType" table="contype" lazy="false">
40     <id name="rid" column="rid" access="field">
41       <generator class="increment"/>
42     </id>
43     <property name="name"  column="name"  access="field" not-null="true" />
44     <property name="state" column="state" type="ProgressState" access="field" not-null="true" />    
45     <property name="step"  column="step"  access="field" not-null="true" />
46   </class>
47   
48 </hibernate-mapping>