1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?xml version="1.0"?>
- <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
- <!-- Generated 2014-10-25 18:40:29 by Hibernate Tools 4.0.0 -->
- <hibernate-mapping>
- <class name="com.base.model.BasePunishmentSection" table="base_punishment_section">
- <id name="punishmentId" type="long">
- <column name="punishment_id" />
- <generator class="native" />
- </id>
- <property name="sectionType" type="string">
- <column name="section_type" length="10" />
- </property>
- <property name="status" type="string">
- <column name="status" length="10" />
- </property>
- <property name="remark" type="string">
- <column name="remark" length="10" />
- </property>
- <!-- <property name="createrId" type="java.lang.Long"> -->
- <!-- <column name="creater_id" /> -->
- <!-- </property> -->
- <many-to-one name="creater" class="com.popedom.model.PopUser" not-null="false">
- <column name="userId"/>
- </many-to-one>
- <property name="createTime" type="date">
- <column name="create_time" length="10" />
- </property>
- <!-- <many-to-one name="userType" class="com.base.model.BaseUserType" not-null="false"> -->
- <!-- <column name="user_type_id"/> -->
- <!-- </many-to-one> -->
- <!-- <property name="userTypeId" type="long"> -->
- <!-- <column name="user_type_id" not-null="true" /> -->
- <!-- </property> -->
- <set name="baseSections" cascade="all-delete-orphan" inverse="true">
- <key column="punishment_id"/>
- <one-to-many class="com.base.model.BaseSection"/>
- </set>
- <property name="userType" column="user_type" />
- </class>
- </hibernate-mapping>
|