<?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.MessageInfo" table="inz_common_message_info" > <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="content" type="nstring" not-null="false"> <column name="content" length="1000"></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="senderInfo" type="text" not-null="false"> <column name="sender_info"></column> </property> <property name="createTime" type="timestamp" not-null="false"> <column name="create_time"></column> </property> <property name="type" type="nstring" not-null="true"> <column name="type" length="50"></column> </property> <property name="partId" type="nstring" not-null="false"> <column name="part_id" length="40" index="idx__inz_contract_message_info__part_id"></column> </property> <property name="isQuery" type="boolean" not-null="false"> <column name="is_query"></column> </property> <property name="tenantId" type="nstring" not-null="false"> <column name="tenant_id" length="50"></column> </property> </class> </hibernate-mapping>