Salome HOME
SIMAN Eclipse workspace first version
[tools/siman.git] / Workspace / SPlat / src / org / splat / som / KnowledgeElement.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.som.KnowledgeElement" table="knowelm" lazy="false">
12   
13 <!-- Properties inherited Persistent
14   -->
15     <id name="rid" column="rid" access="field">
16       <generator class="increment"/>
17     </id>
18     
19 <!-- KnowledgeElement properties
20   -->
21     <!-- KnowledgeElementType  type -->    
22     <many-to-one name="type"   column="type"  access="field" not-null="true" />
23     
24     <!-- String   title  -->    
25     <property    name="title"  column="title" access="field" not-null="true" />
26     
27     <!-- String   value  -->    
28     <property    name="value"  column="value" access="field" not-null="true" />
29     
30     <!-- Scenario owner  -->    
31     <many-to-one name="owner"  column="owner" access="field" not-null="true" />
32   
33     <!-- ProgressState state -->
34     <property    name="state"  column="state" type="ProgressState" access="field" not-null="true" />    
35   
36     <!-- User     author -->    
37     <many-to-one name="author" column="author" access="field" not-null="true" />
38     
39     <!-- Date     date   -->    
40     <property    name="date"   column="date" access="field" not-null="true" />
41     
42   </class>
43
44 <!-- Class KnowledgeElementType
45   -->
46   <class name="org.splat.som.KnowledgeElementType" table="knowtype" lazy="false">
47     <id name="rid" column="rid" access="field">
48       <generator class="increment"/>
49     </id>
50     <property name="name"  column="name"  access="field" not-null="true" />
51     <property name="state" column="state" type="ProgressState" access="field" not-null="true" />    
52   </class>
53   
54 </hibernate-mapping>