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 <union-subclass name="org.splat.dal.bo.som.KnowledgeElement" extends="org.splat.dal.bo.kernel.Persistent" table="knowelm" lazy="false">
13 <!-- Properties inherited Persistent
15 <!-- <id name="rid" column="rid" access="field">
16 <generator class="native"/>
19 <!-- KnowledgeElement properties
21 <!-- KnowledgeElementType type -->
22 <many-to-one name="type" column="type" access="field" not-null="true" />
25 <property name="title" column="title" access="field" not-null="true" />
28 <property name="value" type="text" column="value" access="field" not-null="true" />
30 <!-- Scenario owner -->
31 <many-to-one name="owner" column="owner" access="field" not-null="true" />
33 <!-- ProgressState state -->
34 <property name="state" column="state" type="ProgressState" access="field" not-null="true" />
37 <many-to-one name="author" column="author" access="field" not-null="true" />
40 <property name="date" column="date" access="field" not-null="true" />
44 <!-- Class KnowledgeElementType
46 <union-subclass name="org.splat.dal.bo.som.KnowledgeElementType" extends="org.splat.dal.bo.kernel.Persistent" table="knowtype" lazy="false">
47 <!-- <id name="rid" column="rid" access="field">
48 <generator class="increment"/>
50 <property name="name" column="name" access="field" not-null="true" />
51 <property name="state" column="state" type="ProgressState" access="field" not-null="true" />