<?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.Person" table="jsh_person">
  <id name="Id" type="java.lang.Long">
   <column name="Id"/>
   <generator class="native"/>
  </id>
  <many-to-one name="depot" class="com.jsh.model.po.Depot" lazy="false">
    <column name="ProjectId" not-null="true" />
  </many-to-one>
  <property generated="never" lazy="false" name="Type" type="java.lang.String">
   <column length="20" name="Type">
    <comment>类型</comment>
   </column>
  </property>
  <property generated="never" lazy="false" name="Name" type="java.lang.String">
   <column length="50" name="Name">
    <comment>姓名</comment>
   </column>
  </property>
 </class>
</hibernate-mapping>
