Salome HOME
Siman codebase is refactored. Spring beans are introduced in the context.
[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 <!-- Properties inherited from Any
19   -->
20     <!-- <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
21       <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
22     </id>
23     <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
24       <key         column="owner" />
25       <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
26     </set> -->
27
28 <!-- Timestamp properties
29   -->
30     <!-- StampRelation        context -->    
31     <one-to-one  name="context" property-ref="refer" access="field"/>
32     
33     <!-- ValidationCycle.Step mytype  -->    
34     <property type="StampType"  name="mytype" column="type" 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                 sdate, including the time section -->    
40     <property type="timestamp"  name="sdate"  column="date" access="field" not-null="true" />
41
42   </union-subclass>
43 </hibernate-mapping>