<?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">
<hibernate-mapping>
 <class name="com.jsh.model.po.MaterialCategory" table="jsh_materialcategory">
  <id name="Id" type="java.lang.Long">
   <column name="Id"/>
   <generator class="native"/>
  </id>
  <property generated="never" lazy="false" name="Name" type="java.lang.String">
   <column length="50" name="Name">
    <comment>名称</comment>
   </column>
  </property>
  <property generated="never" lazy="false" name="CategoryLevel" type="java.lang.Short">
   <column length="20" name="CategoryLevel">
    <comment>等级</comment>
   </column>
  </property>
  <many-to-one name="materialCategory" class="com.jsh.model.po.MaterialCategory" lazy="false">
    <column name="ParentId" />
  </many-to-one>
 </class>
</hibernate-mapping>
