Salome HOME
XML comment is fixed
[tools/siman.git] / Workspace / SPlat / src / org / splat / som / Timestamp.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="StampType" class="org.splat.kernel.GenericEnumType">
12       <param name="enumClassName">org.splat.som.ValidationStep</param>
13   </typedef>
14
15   <class name="org.splat.som.Timestamp" table="stamp" lazy="false">
16
17 <!-- Properties inherited from Any
18   -->
19     <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
20       <generator class="org.splat.kernel.IDGenerator"/>
21     </id>
22     <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
23       <key         column="owner" />
24       <one-to-many class="org.splat.kernel.Attribute" />
25     </set>
26
27 <!-- Timestamp properties
28   -->
29     <!-- StampRelation        context -->    
30     <one-to-one  name="context" property-ref="refer" access="field" />
31     
32     <!-- ValidationCycle.Step mytype  -->    
33     <property type="StampType"  name="mytype" column="type" access="field" not-null="true" />    
34
35     <!-- User                 author  -->    
36     <many-to-one name="author"  column="author" access="field" not-null="true" />
37     
38     <!-- Date                 sdate, including the time section -->    
39     <property type="timestamp"  name="sdate"  column="date" access="field" not-null="true" />
40
41   </class>
42 </hibernate-mapping>