<?xml version="1.0"?>
<!--
/**
 * 
 * OLAT - Online Learning and Testing
 * 
 * This source code is protected by the General Public License (GPL)
 *
 * Copyright (c) 1999 - 2002 OLAT-Zentrum
 * University Zuerich, Switzerland
 *
 * Initial Date:  26.10.2002
 *
 * @author Sabina Jeger
 *
 * Comment: Mapping of BookmarkImpl class to database 
 * tables.
 */
-->
<!DOCTYPE hibernate-mapping PUBLIC 
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
  <class name="org.olat.bookmark.BookmarkImpl" table="o_bookmark">  
  
		<cache usage="read-write" />

    <id name="key" column="bookmark_id" type="long" unsaved-value="null">
      <generator class="hilo"/>
    </id>
    
		<timestamp name="lastModified" column="lastmodified" />   
  	<property  name="creationDate" column="creationdate" type="timestamp" />   
  
   	<many-to-one
			name="owner"
			class="org.olat.basesecurity.IdentityImpl" 
			column="owner_id"
			outer-join="true"
			cascade="none"
			not-null="true" /> 

    <property name="title" unique="false" not-null="true" length="255" />
    <property name="description">
			<column name="description" sql-type="text" unique="false" not-null="false" />
    </property>
    <property name="detaildata" unique="false" not-null="false" length="255" />

	<property name="displayrestype" unique="false" not-null="true" length="50" />
    <property name="olatrestype" unique="false" not-null="true" length="50" />
    <property name="olatreskey" type="long" not-null="false" />

  </class>  
</hibernate-mapping>

