ibatis中实体类和数据库字段名不一致,该怎么映射呢
<resultMap class="com.ibatis.entity.Employee" id="employeeMap">
<result property="no" column="empno"/>
<result property="name" column="ename"/>
<result property="job" column="job"/>
<result property="hireDate" column="hiredate"/>
<result property="salary" column="sal"/>
<result property="department" column="deptno" select="findDeptById"/>
</resultMap>
|
|