MessageInfo.hbm.xml 1.78 KB
Newer Older
PWF-WK01\pengwufeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?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>