EmployeesMapper.xml 930 B

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.example.bcryptpassworden.mapper.EmployeesMapper">
  6. <resultMap id="BaseResultMap" type="com.example.bcryptpassworden.domain.Employees">
  7. <id property="empNo" column="emp_no" jdbcType="INTEGER"/>
  8. <result property="birthDate" column="birth_date" jdbcType="DATE"/>
  9. <result property="firstName" column="first_name" jdbcType="VARCHAR"/>
  10. <result property="lastName" column="last_name" jdbcType="VARCHAR"/>
  11. <result property="gender" column="gender" jdbcType="OTHER"/>
  12. <result property="hireDate" column="hire_date" jdbcType="DATE"/>
  13. </resultMap>
  14. <sql id="Base_Column_List">
  15. emp_no,birth_date,first_name,
  16. last_name,gender,hire_date
  17. </sql>
  18. </mapper>