]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/som/Attributes.hbm.xml
Salome HOME
Show and Edit comments functionalities are implemented
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Attributes.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 concrete subclasses.
5         -
6         - @author    Daniel Brunier-Coulin
7         - @copyright OPEN CASCADE 2012
8 -->
9
10 <hibernate-mapping>
11
12         <!-- Description attribute
13         -->
14         <union-subclass name="org.splat.dal.bo.som.DescriptionAttribute"
15                 extends="org.splat.dal.bo.kernel.TextAttribute" table="descr_attr">
16         </union-subclass>
17
18         <!-- Comment attribute
19         -->
20         <union-subclass name="org.splat.dal.bo.som.CommentAttribute"
21                 extends="org.splat.dal.bo.kernel.TextAttribute" table="comment_attr">
22         </union-subclass>
23         
24         <!-- Step Comment attribute
25         -->
26         <union-subclass name="org.splat.dal.bo.som.StepCommentAttribute"
27                 extends="org.splat.dal.bo.kernel.TextAttribute" table="step_comment">
28                 
29                 <many-to-one name="user" column="user" not-null="true" />       
30             <property name="date" column="date" not-null="true" />
31             <property name="step" column="step" not-null="true" />
32         <property name="title" column="title" not-null="true" type="text"/>
33         </union-subclass>       
34
35 </hibernate-mapping>