BaseSection.hbm.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  3. "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
  4. <!-- Generated 2014-10-25 23:11:51 by Hibernate Tools 4.0.0 -->
  5. <hibernate-mapping>
  6. <class name="com.base.model.BaseSection" table="base_section">
  7. <id name="sectionId" type="long">
  8. <column name="section_id" />
  9. <generator class="native" />
  10. </id>
  11. <!-- <property name="punishmentId" type="long"> -->
  12. <!-- <column name="punishment_id" not-null="true" /> -->
  13. <!-- </property> -->
  14. <property name="section" type="java.lang.Integer">
  15. <column name="section" />
  16. </property>
  17. <property name="sectionUpLimit" type="java.lang.Integer">
  18. <column name="section_up_limit" />
  19. </property>
  20. <property name="sectionLowerLimit" type="java.lang.Integer">
  21. <column name="section_lower_limit" />
  22. </property>
  23. <property name="containUp" type="string">
  24. <column name="contain_up" length="10" />
  25. </property>
  26. <property name="containLower" type="string">
  27. <column name="contain_lower" length="10" />
  28. </property>
  29. <property name="fineProportion" type="java.lang.Float">
  30. <column name="fine_proportion" precision="8" scale="0" />
  31. </property>
  32. <many-to-one name="creater" class="com.popedom.model.PopUser" not-null="false">
  33. <column name="userId"/>
  34. </many-to-one>
  35. <many-to-one name="basePunishmentSection" class="com.base.model.BasePunishmentSection" not-null="false">
  36. <column name="punishment_id"/>
  37. </many-to-one>
  38. <property name="createTime" type="date">
  39. <column name="create_time" length="10" />
  40. </property>
  41. </class>
  42. </hibernate-mapping>