日期:2014-05-19 浏览次数:20763 次
<id name="classId" type="java.lang.Integer"> <column name="class_id" /> <generator class="increment"></generator> </id> <many-to-one name="major" class="com.muse.pojo.Major" fetch="select" lazy="false"> <column name="major_id" /> </many-to-one> <property name="className" type="java.lang.String"> <column name="class_name" length="50" /> </property>