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 the Relation class hierarchy.
5 - The entire hierarchy is mapped to one single table using a String discriminator.
7 - @author Daniel Brunier-Coulin
8 - @copyright OPEN CASCADE 2012
13 <!-- <class name="org.splat.dal.bo.kernel.Relation" abstract="true" table="relation"> -->
14 <class name="org.splat.dal.bo.kernel.Relation" abstract="true">
17 <!-- <id name="rid" type="int" column="rid" unsaved-value="0" access="field">
18 <generator class="org.splat.dal.bo.kernel.IDGenerator"/>
20 <id name="rid" column="rid" access="field">
21 <generator class="org.hibernate.id.enhanced.SequenceStyleGenerator">
22 <param name="sequence_name">relation_id</param>
25 <!-- <discriminator column="name" type="string"/>-->
27 <!-- Set<Attribute> attributes -->
28 <set name="attributes" inverse="true" lazy="false" cascade="all-delete-orphan" access="field">
29 <key column="owner" />
30 <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
34 <many-to-one name="owner" column="owner" access="field" not-null="true" />
36 <!-- <property name="to" column="refer" access="property" not-null="true" />-->