let us start using struts.\rand some fixes in the new persistence layer.
[mir.git] / source / mir / core / model / Comment.hbm.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE hibernate-mapping PUBLIC
3     "-//Hibernate/Hibernate Mapping DTD//EN"
4     "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
5     
6 <hibernate-mapping>
7
8 <!-- 
9     Created by Middlegen Hibernate plugin
10
11     http://boss.bekk.no/boss/middlegen/
12     http://hibernate.sourceforge.net/
13 -->
14
15 <class 
16     name="mir.core.model.Comment" 
17     table="comment"
18 >
19     <id
20         name="id"
21         type="int"
22         column="id"
23     >
24         <generator class="assigned" />
25     </id>
26     <property
27         name="title"
28         type="java.lang.String"
29         column="title"
30         not-null="true"
31         length="80"
32     />
33     <property
34         name="creator"
35         type="java.lang.String"
36         column="creator"
37         not-null="true"
38         length="80"
39     />
40     <property
41         name="description"
42         type="java.lang.String"
43         column="description"
44         not-null="true"
45         length="-1"
46     />
47     <property
48         name="mainUrl"
49         type="java.lang.String"
50         column="main_url"
51         length="255"
52     />
53     <property
54         name="email"
55         type="java.lang.String"
56         column="email"
57         length="80"
58     />
59     <property
60         name="address"
61         type="java.lang.String"
62         column="address"
63         length="80"
64     />
65     <property
66         name="phone"
67         type="java.lang.String"
68         column="phone"
69         length="20"
70     />
71     <property
72         name="webdbCreate"
73         type="java.sql.Timestamp"
74         column="webdb_create"
75         not-null="true"
76         length="8"
77     />
78     <property
79         name="published"
80         type="boolean"
81         column="is_published"
82         not-null="true"
83         length="1"
84     />
85     <property
86         name="toLanguage"
87         type="int"
88         column="to_language"
89         not-null="true"
90         length="4"
91     />
92     <property
93         name="toMedia"
94         type="int"
95         column="to_media"
96         not-null="true"
97         length="4"
98     />
99     <property
100         name="toCommentStatus"
101         type="short"
102         column="to_comment_status"
103         length="2"
104     />
105     <property
106         name="checksum"
107         type="int"
108         column="checksum"
109         length="4"
110     />
111     <property
112         name="html"
113         type="boolean"
114         column="is_html"
115         not-null="true"
116         length="1"
117     />
118
119     <!-- associations -->
120
121 </class>
122 </hibernate-mapping>