Salome HOME
Mapping is fixed. Relation in the mapping is inherited from Persistent now. Versionin...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / TextAttribute.hbm.xml
index 7b5fe9bb7659d15905c9a17c8501bbd3720caef1..6f7fd2461726174a771a1fa71979770c858cfe29 100644 (file)
@@ -1,14 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
 <!--
-  -
-  - @author    Daniel Brunier-Coulin
-  - @copyright OPEN CASCADE 2012
-  -->
+       -
+       - @author    Daniel Brunier-Coulin
+       - @copyright OPEN CASCADE 2012
+-->
 
 <hibernate-mapping>
-  <joined-subclass name="org.splat.dal.bo.kernel.TextAttribute" extends="org.splat.dal.bo.kernel.Attribute" table="text_attr">
-       <key column="rid"/>
-           <property name="mytext" column="value" type="text" access="field" not-null="true"/>
-  </joined-subclass>
+       <union-subclass name="org.splat.dal.bo.kernel.TextAttribute"
+               extends="org.splat.dal.bo.kernel.Attribute" table="text_attr"
+               abstract="true">
+
+               <property name="mytext" column="value" type="text"
+                       access="field" not-null="true" />
+       </union-subclass>
 </hibernate-mapping>
\ No newline at end of file