rebuilding head
[mir.git] / source / mir / core / model / Comment.hbm.xml
diff --git a/source/mir/core/model/Comment.hbm.xml b/source/mir/core/model/Comment.hbm.xml
deleted file mode 100755 (executable)
index b834a02..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE hibernate-mapping PUBLIC
-    "-//Hibernate/Hibernate Mapping DTD//EN"
-    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
-    
-<hibernate-mapping>
-
-<!-- 
-    Created by Middlegen Hibernate plugin
-
-    http://boss.bekk.no/boss/middlegen/
-    http://hibernate.sourceforge.net/
--->
-
-<class 
-    name="mir.core.model.Comment" 
-    table="comment"
-    proxy="mir.core.model.IComment"
->
-    <id
-        name="id"
-        type="int"
-        column="id"
-        unsaved-value="0"
-    >
-        <generator class="sequence">
-               <param name="sequence">comment_id_seq</param> 
-        </generator>
-    </id>
-
-    <property
-        name="title"
-        type="java.lang.String"
-        column="title"
-        not-null="true"
-        length="255"
-    />
-    <property
-        name="creator"
-        type="java.lang.String"
-        column="creator"
-        not-null="true"
-        length="80"
-    />
-    <property
-        name="description"
-        type="java.lang.String"
-        column="description"
-        not-null="true"
-        sql-type="text" 
-    />
-
-    <property
-        name="mainUrl"
-        type="java.lang.String"
-        column="main_url"
-        length="255"
-    />
-    <property
-        name="email"
-        type="java.lang.String"
-        column="email"
-        length="80"
-    />
-    <property
-        name="address"
-        type="java.lang.String"
-        column="address"
-        length="80"
-    />
-    <property
-        name="phone"
-        type="java.lang.String"
-        column="phone"
-        length="20"
-    />
-
-    <property
-        name="webdbCreate"
-        type="java.sql.Timestamp"
-        column="webdb_create"
-        not-null="true"
-        length="8"
-    />
-
-    <property
-        name="published"
-        type="boolean"
-        column="is_published"
-        not-null="true"
-        length="1"
-    />
-
-    <property
-        name="checksum"
-        type="int"
-        column="checksum"
-        length="4"
-    />
-
-    <property
-        name="html"
-        type="boolean"
-        column="is_html"
-        not-null="true"
-        length="1"
-    />
-
-    <!-- associations -->
-   
-    <many-to-one
-        name="language"
-        class="mir.core.model.Language"
-        column="to_language"
-    />
-
-    <!-- dont know why but with Media it does not work -->
-    <many-to-one
-        name="media"
-        class="mir.core.model.Content"
-        column="to_media"
-    />
-
-    <many-to-one
-        name="commentStatus"
-        class="mir.core.model.CommentStatus"
-        column="to_comment_status"
-    />    
-
-</class>
-</hibernate-mapping>