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" >
5 - @author Daniel Brunier-Coulin
6 - @copyright OPEN CASCADE 2012
11 <typedef name="StampType" class="org.splat.dal.bo.kernel.GenericEnumType">
12 <param name="enumClassName">org.splat.dal.bo.som.ValidationStep</param>
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">
18 <!-- Properties inherited from Any
20 <!-- <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
21 <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
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" />
28 <!-- Timestamp properties
30 <!-- StampRelation context -->
31 <one-to-one name="context" property-ref="refer" access="field"/>
33 <!-- ValidationCycle.Step mytype -->
34 <property type="StampType" name="mytype" column="type" access="field" not-null="true" />
37 <many-to-one name="author" column="author" access="field" not-null="true" />
39 <!-- Date sdate, including the time section -->
40 <property type="timestamp" name="sdate" column="date" access="field" not-null="true" />