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


<?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.Student" table="student"> 
  <id name="stuId" type="java.lang.Integer"> 
   <column name="stu_id"/> 
   <generator class="identity"/> 
  </id> 
  <property generated="never" lazy="false" name="stuName" type="java.lang.String"> 
   <column length="20" name="stu_name"/> 
  </property> 
  <property generated="never" lazy="false" name="stuSex" type="java.lang.String"> 
   <column length="2" name="stu_sex"/> 
  </property> 
  <property generated="never" lazy="false" name="stuAddress" type="java.lang.String"> 
   <column length="100" name="stu_address"/> 
  </property> 
  <property generated="never" lazy="false" name="stuPhone" type="java.lang.String"> 
   <column length="20" name="stu_phone"/> 
  </property> 
  <property generated="never" lazy="false" name="stuSp" type="java.lang.String"> 
   <column length="20" name="stu_sp"/> 
  </property> 
  <property generated="never" lazy="false" name="stuClass" type="java.lang.String"> 
   <column length="10" name="stu_class"/> 
  </property> 
  <property generated="never" lazy="false" name="stuEmail" type="java.lang.String"> 
   <column length="30" name="stu_email"/> 
  </property> 
  <set inverse="true" name="student_courses" sort="unsorted"> 
   <key> 
    <column name="stu_id" not-null="true"/> 
   </key> 
   <one-to-many class="models.Student_course"/> 
  </set> 
 </class> 
</hibernate-mapping>