<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"> <class entity-name="com.beecode.inz.message.datamodel.Remind" table="inz_common_remind" > <tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/> <id name="id" type="uuid-binary" column="id" length="16"> <generator class="assigned" /> </id> <property name="remindTime" type="timestamp" not-null="true"> <column name="remind_time"></column> </property> <property name="remindContent" type="nstring" not-null="false"> <column name="remind_content" length="400"></column> </property> <property name="sourceType" type="nstring" not-null="false"> <column name="source_type" length="50"></column> </property> <many-to-one name="sender" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="sender_id" not-null="false"/> </many-to-one> <property name="createTime" type="timestamp" not-null="false"> <column name="create_time"></column> </property> <property name="data" type="nstring" not-null="false"> <column name="data" length="400"></column> </property> <property name="lookType" type="nstring" not-null="true"> <column name="look_type" length="50"></column> </property> <property name="lookName" type="nstring" not-null="false"> <column name="look_name" length="50"></column> </property> <property name="state" type="nstring" not-null="false"> <column name="state" length="100"></column> </property> <property name="businessInfo" type="nstring" not-null="false"> <column name="business_info" length="2000"></column> </property> </class> </hibernate-mapping>