www.pudn.com > Desktop.rar > Teacher.hbm.xml, change:2012-12-28,size:969b


<?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 Persistence Tools
--> 
<hibernate-mapping> 
 <class catalog="final" name="models.Teacher" table="teacher"> 
  <id name="TId" type="java.lang.Integer"> 
   <column name="t_id"/> 
   <generator class="identity"/> 
  </id> 
  <property generated="never" lazy="false" name="TName" type="java.lang.String"> 
   <column length="20" name="t_name"/> 
  </property> 
  <property generated="never" lazy="false" name="TPhone" type="java.lang.String"> 
   <column length="20" name="t_phone"/> 
  </property> 
  <set inverse="true" name="course_teachers" sort="unsorted"> 
   <key> 
    <column name="t_id"/> 
   </key> 
   <one-to-many class="models.Course_teacher"/> 
  </set> 
 </class> 
</hibernate-mapping>