Emp.hbm.xml
员工信息表的映射文件
<?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 name="cn.bdqn.hibernate_Criteria.entity.Emp" table="EMP" schema="PRO">
<id name="empno" type="java.lang.Integer">
<column name="EMPNO" precision="6" scale="0" />
<generator class="assigned" />
</id>
<many-to-one name="dept" class="cn.bdqn.hibernate_Criteria.entity.Dept" fetch="select">
<column name="DEPTNO" precision="6" scale="0" />
</many-to-one>
<property name="ename" type="java.lang.String">
<column name="ENAME" length="10" />
</property>
<property name="job" type="java.lang.String">
<column name="JOB" length="9" />
</property>
<property name="mgr" type="java.lang.Integer">
<column name="MGR" precision="6" scale="0" />
</property>
<property name="hiredate" type="java.util.Date">
<column name="HIREDATE" length="7" />
</property>
<property name="sal" type="java.lang.Double">
<column name="SAL" precision="7" />
</property>
<property name="comm" type="java.lang.Double">
<column name="COMM" precision="7" />
</property>
</class>
</hibernate-mapping>