+++ /dev/null
-<?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.UploadedMedia"
- table="uploaded_media"
->
- <id
- name="id"
- type="int"
- column="id"
- >
- <generator class="sequence">
- <param name="sequence">media_id_seq</param>
- </generator>
- </id>
- <property
- name="title"
- type="java.lang.String"
- column="title"
- not-null="true"
- length="255"
- />
- <property
- name="subtitle"
- type="java.lang.String"
- column="subtitle"
- length="128"
- />
- <property
- name="edittitle"
- type="java.lang.String"
- column="edittitle"
- length="128"
- />
- <property
- name="date"
- type="java.lang.String"
- column="date"
- not-null="true"
- length="8"
- />
- <property
- name="creator"
- type="java.lang.String"
- column="creator"
- length="80"
- />
- <property
- name="creatorMainUrl"
- type="java.lang.String"
- column="creator_main_url"
- length="255"
- />
- <property
- name="creatorEmail"
- type="java.lang.String"
- column="creator_email"
- length="80"
- />
- <property
- name="creatorAddress"
- type="java.lang.String"
- column="creator_address"
- length="80"
- />
- <property
- name="creatorPhone"
- type="java.lang.String"
- column="creator_phone"
- length="20"
- />
- <property
- name="description"
- type="java.lang.String"
- column="description"
- sql-type="text"
- />
- <property
- name="comment"
- type="java.lang.String"
- column="comment"
- sql-type="text"
- />
- <property
- name="source"
- type="java.lang.String"
- column="source"
- length="255"
- />
- <property
- name="publishDate"
- type="java.sql.Timestamp"
- column="publish_date"
- length="8"
- />
- <property
- name="publishServer"
- type="java.lang.String"
- column="publish_server"
- length="255"
- />
- <property
- name="publishPath"
- type="java.lang.String"
- column="publish_path"
- length="255"
- />
- <property
- name="published"
- type="boolean"
- column="is_published"
- not-null="true"
- length="1"
- />
- <property
- name="produced"
- type="boolean"
- column="is_produced"
- not-null="true"
- length="1"
- />
- <property
- name="webdbCreate"
- type="java.sql.Timestamp"
- column="webdb_create"
- not-null="true"
- length="8"
- />
- <property
- name="webdbLastchange"
- type="java.sql.Timestamp"
- column="webdb_lastchange"
- length="8"
- />
- <property
- name="iconIsProduced"
- type="boolean"
- column="icon_is_produced"
- not-null="true"
- length="1"
- />
- <property
- name="iconPath"
- type="java.lang.String"
- column="icon_path"
- length="255"
- />
-
- <!-- associations -->
- <many-to-one
- name="mediaType"
- class="mir.core.model.MediaType"
- column="to_media_type"
- />
- <many-to-one
- name="mediaFolder"
- class="mir.core.model.MediaFolder"
- column="to_media_folder"
- />
- <many-to-one
- name="publisher"
- class="mir.core.model.MirUser"
- column="to_publisher"
- />
- <many-to-one
- name="language"
- class="mir.core.model.Language"
- column="to_language"
- />
- <many-to-one
- name="rights"
- class="mir.core.model.Rights"
- column="to_rights"
- />
- <set name="content" table="content_x_media" lazy="true">
- <key column="media_id"/>
- <many-to-many column="content_id" class="mir.core.model.Content"/>
- </set>
-
-</class>
-</hibernate-mapping>