Salome HOME
Update copyrights 2014.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / Any.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         - Mapping of the root abstract class supporting dynamic attributes.
5         - All objects instance of a subclass of Any are uniquely identified by the rid primary key through the IDGenerator identifier generator class.
6         -
7         - @author    Daniel Brunier-Coulin
8         - @copyright OPEN CASCADE 2012-2014
9 -->
10
11 <hibernate-mapping>
12         <union-subclass name="org.splat.dal.bo.kernel.Any"
13                 extends="org.splat.dal.bo.kernel.Persistent" abstract="true"
14                 table="any">
15
16                 <!-- Set<Attribute> attributes -->
17                 <set name="attributes" inverse="true" lazy="false"
18                         cascade="all-delete-orphan" access="field">
19                         <key column="owner" />
20                         <one-to-many class="org.splat.dal.bo.kernel.Attribute" />
21                 </set>
22         </union-subclass>
23 </hibernate-mapping>