You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.7 KiB
63 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
|
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
|
<!--
|
|
Mapping file autogenerated by MyEclipse - Hibernate Tools
|
|
-->
|
|
<hibernate-mapping package="cn.lee.market.model">
|
|
<class name="Message" table="t_message" catalog="market">
|
|
<id name="id" type="string">
|
|
<column name="ID" length="50" />
|
|
<generator class="uuid.hex"></generator>
|
|
</id>
|
|
<many-to-one name="MArea" class="Area" fetch="select">
|
|
<column name="AREA_ID" length="50" not-null="true" />
|
|
</many-to-one>
|
|
<many-to-one name="TUser" class="User" fetch="select">
|
|
<column name="CREATE_USER_ID" length="50" not-null="true" />
|
|
</many-to-one>
|
|
<many-to-one name="MType" class="Type" fetch="select">
|
|
<column name="TYPE_ID" length="50" not-null="true" />
|
|
</many-to-one>
|
|
<property name="message_title" type="string">
|
|
<column name="MESSAGE_TITLE" length="50" not-null="true" unique="true" />
|
|
</property>
|
|
<property name="old_value" type="short">
|
|
<column name="OLD_VALUE" not-null="true" />
|
|
</property>
|
|
<property name="price" type="long">
|
|
<column name="PRICE" precision="10" scale="0" not-null="true" />
|
|
</property>
|
|
<property name="r_user" type="string">
|
|
<column name="R_USER" length="10" not-null="true" />
|
|
</property>
|
|
<property name="r_email" type="string">
|
|
<column name="R_EMAIL" length="50" />
|
|
</property>
|
|
<property name="r_phone" type="string">
|
|
<column name="R_PHONE" length="50" not-null="true" />
|
|
</property>
|
|
<property name="message_desc" type="string">
|
|
<column name="MESSAGE_DESC" length="200" not-null="true" />
|
|
</property>
|
|
<property name="message_photo" type="string">
|
|
<column name="MESSAGE_PHOTO" length="50" />
|
|
</property>
|
|
<property name="flag" type="short">
|
|
<column name="FLAG" not-null="true" />
|
|
</property>
|
|
<property name="top_value" type="integer">
|
|
<column name="TOP_VALUE" />
|
|
</property>
|
|
<property name="create_time" type="timestamp">
|
|
<column name="CREATE_TIME" length="19" not-null="true" />
|
|
</property>
|
|
<set name="TComments" inverse="true">
|
|
<key>
|
|
<column name="MESSAGE_ID" length="50" not-null="true" />
|
|
</key>
|
|
<one-to-many class="Comment" />
|
|
</set>
|
|
</class>
|
|
</hibernate-mapping>
|