Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
UserImpl.hbm.xml 1.60 KiB
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC 
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-lazy="false">
  <class name="org.olat.user.UserImpl" table="o_user">  
    <id name="key" column="user_id" type="long" unsaved-value="null">
      <generator class="hilo"/>
    </id>

	<version name="version" access="field" column="version" type="int"/>
	<property  name="creationDate" column="creationdate" type="timestamp" />   

	<component name="preferences" class="org.olat.user.PreferencesImpl">
	    <property name="language" unique="false" not-null="false" length="30"/>
	    <property name="fontsize" unique="false" not-null="false" length="10"/>
	    <property name="notificationInterval">
	    	<column name="notification_interval" unique="false" not-null="false" length="16"/>
	    </property>
	    <property name="presenceMessagesPublic">
	    	<column name="presencemessagespublic"  unique="false" not-null="false"/>
	    </property>	
    	<property name="informSessionTimeout">
    		<column name="informsessiontimeout"  unique="false" not-null="false" length="16"/>
	    </property>	     
	    
	    <property name="receiveRealMail" column="receiverealmail" unique="false" not-null="false" length="16" type="string"/>  
    </component>

	<map name="properties" table="o_userproperty" cascade="all,delete-orphan" fetch="join">
        <key column="fk_user_id" not-null="true"/>
        <map-key column="propname" type="string"/>
        <element column="propvalue" type="string"/>
    </map>
  </class>
</hibernate-mapping>