<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping
default-lazy="false"
>
<class
name="com.topsoft.oa.routine.domain.office.entity.WorkNote"
table="rc_gzrz"
>
<meta attribute="class-description">工作日志</meta>
<id
name="id"
column="BS"
type="java.lang.Long"
>
<meta attribute="field-description">标识</meta>
<generator class="sequence">
<param name="sequence">SEQ_GW</param>
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-WorkNote.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="workDate"
type="timestamp"
update="true"
insert="true"
column="workDate"
not-null="false"
>
<meta attribute="field-description">工作日期</meta>
</property>
<property
name="weather"
type="java.lang.String"
update="true"
insert="true"
column="weather"
length="24"
not-null="false"
>
<meta attribute="field-description">天气</meta>
</property>
<property
name="content"
type="org.springframework.orm.hibernate3.support.ClobStringType"
update="true"
insert="true"
column="content"
not-null="false"
>
<meta attribute="field-description">内容</meta>
</property>
<property
name="state"
type="java.lang.String"
update="true"
insert="true"
column="state"
length="2"
not-null="false"
>
<meta attribute="field-description">状态</meta>
</property>
<property
name="orgId"
type="long"
update="true"
insert="true"
column="orgId"
>
<meta attribute="field-description">机构id</meta>
</property>
<property
name="userId"
type="long"
update="true"
insert="true"
column="userId"
>
<meta attribute="field-description">用户id</meta>
</property>
<property
name="createDate"
type="timestamp"
update="true"
insert="true"
column="createDate"
not-null="false"
>
<meta attribute="field-description">创建日期</meta>
</property>
<property
name="image"
type="org.springframework.orm.hibernate3.support.BlobByteArrayType"
update="true"
insert="true"
column="image"
not-null="false"
>
<meta attribute="field-description">图片</meta>
</property>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-WorkNote.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>

