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" >
4 - Mapping of properties common to Study and Scenario
6 - @author Daniel Brunier-Coulin
7 - @copyright OPEN CASCADE 2012
12 <!-- <class name="org.splat.dal.bo.som.ProjectElement" abstract="true"> -->
13 <union-subclass name="org.splat.dal.bo.som.ProjectElement" extends="org.splat.dal.bo.kernel.Entity" abstract="true">
15 <!-- Properties inherited from Entity
17 <!-- <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
18 <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
20 <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
21 <key column="owner" />
22 <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
24 <set name="relations" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
25 <key column="owner" />
26 <one-to-many class="org.splat.dal.bo.kernel.Relation" />
29 <!-- ProjectElement properties common to Study and Scenario
31 <property name="title" column="title" access="field" not-null="true" />
32 <property name="credate" column="credate" access="field" not-null="true" />
33 <property name="lasdate" column="lasdate" access="field" not-null="true" />
34 <many-to-one name="manager" column="manager" access="field" not-null="true" />
35 <list name="contex" table="projext" lazy="false" access="field">
36 <key column="owner" />
37 <list-index column="ordex" />
38 <many-to-many column="rid" class="org.splat.dal.bo.som.SimulationContext" />
40 <set name="docums" inverse="true" lazy="false" order-by="`rid` desc" cascade="all-delete-orphan" access="field">
41 <key column="owner" />
42 <one-to-many class="org.splat.dal.bo.som.Publication" />