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.5 KiB
63 lines
2.5 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="User" table="t_user" catalog="market">
|
|
<id name="id" type="string">
|
|
<column name="ID" length="50" />
|
|
<generator class="uuid.hex"></generator>
|
|
</id>
|
|
<many-to-one name="MStudent" class="Student" fetch="select">
|
|
<column name="STU_ID" length="12" not-null="true" />
|
|
</many-to-one>
|
|
<property name="username" type="string">
|
|
<column name="USERNAME" length="10" not-null="true" unique="true" />
|
|
</property>
|
|
<property name="password" type="string">
|
|
<column name="PASSWORD" length="16" not-null="true" />
|
|
</property>
|
|
<property name="birthday" type="timestamp">
|
|
<column name="BIRTHDAY" length="19" not-null="true" />
|
|
</property>
|
|
<property name="photo" type="short">
|
|
<column name="PHOTO" not-null="true" />
|
|
</property>
|
|
<property name="question" type="string">
|
|
<column name="QUESTION" length="100" not-null="true" />
|
|
</property>
|
|
<property name="answer" type="string">
|
|
<column name="ANSWER" length="100" not-null="true" />
|
|
</property>
|
|
<property name="email" type="string">
|
|
<column name="EMAIL" length="50" />
|
|
</property>
|
|
<property name="qq" type="string">
|
|
<column name="QQ" length="20" />
|
|
</property>
|
|
<property name="create_time" type="timestamp">
|
|
<column name="CREATE_TIME" length="19" not-null="true" />
|
|
</property>
|
|
<property name="status" type="short">
|
|
<column name="STATUS" not-null="true" />
|
|
</property>
|
|
<property name="role" type="short">
|
|
<column name="ROLE" not-null="true" />
|
|
</property>
|
|
<set name="TMessages" inverse="true">
|
|
<key>
|
|
<column name="CREATE_USER_ID" length="50" not-null="true" />
|
|
</key>
|
|
<one-to-many class="Message" />
|
|
</set>
|
|
<set name="TComments" inverse="true">
|
|
<key>
|
|
<column name="USER_ID" length="50" not-null="true" />
|
|
</key>
|
|
<one-to-many class="Comment" />
|
|
</set>
|
|
</class>
|
|
</hibernate-mapping>
|