Salome HOME
Mapping is fixed. Relation in the mapping is inherited from Persistent now. Versionin...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / 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.dal.bo.kernel.GenericEnumType">
12       <param name="enumClassName">org.splat.dal.bo.som.ValidationStep</param>
13   </typedef>
14
15 <!--   <class name="org.splat.dal.bo.som.Timestamp" table="stamp" lazy="false"> -->
16   <union-subclass name="org.splat.dal.bo.som.Timestamp" extends="org.splat.dal.bo.kernel.Any" table="stamp" lazy="false">
17
18 <!-- Timestamp properties
19   -->
20     <!-- StampRelation        context -->    
21     <one-to-one  name="context" property-ref="refer" access="field"/>
22     
23     <!-- ValidationCycle.Step mytype  -->    
24     <property type="StampType"  name="mytype" column="type" access="field" not-null="true" />    
25
26     <!-- User                 author  -->    
27     <many-to-one name="author"  column="author" access="field" not-null="true" />
28     
29     <!-- Date                 sdate, including the time section -->    
30     <property type="timestamp"  name="sdate"  column="date" access="field" not-null="true" />
31
32   </union-subclass>
33 </hibernate-mapping>