Salome HOME
2a25e08abe21040f6736b5031a5d35f5967f3d30
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / kernel / Attribute.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 Attribute class hierarchy.
5   - The attribute hierarchy is mapped to a single table using a String discriminator.
6   -
7   - @author    Daniel Brunier-Coulin
8   - @copyright OPEN CASCADE 2012
9   -->
10
11 <hibernate-mapping>
12
13   <class name="org.splat.kernel.Attribute" abstract="true" table="attribute">
14   
15     <!-- int     rid   -->    
16     <id name="rid" column="rid" access="field">
17       <generator class="increment"/>
18     </id>
19     <discriminator column="type" type="string"/>
20
21     <!-- Any     owner -->    
22     <many-to-one name="owner" column="owner" access="field" not-null="true" />
23
24   </class>
25
26 </hibernate-mapping>