UserMapper.xml 1.6 KB

12345678910111213141516171819202122232425262728293031
  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.UserMapper">
  6. <resultMap id="BaseResultMap" type="com.example.bcryptpassworden.domain.User">
  7. <id property="id" column="id" jdbcType="VARCHAR"/>
  8. <result property="email" column="email" jdbcType="VARCHAR"/>
  9. <result property="name" column="name" jdbcType="VARCHAR"/>
  10. <result property="fullname" column="fullname" jdbcType="VARCHAR"/>
  11. <result property="password" column="password" jdbcType="VARCHAR"/>
  12. <result property="photo" column="photo" jdbcType="VARCHAR"/>
  13. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  14. <result property="currentStatus" column="current_status" jdbcType="INTEGER"/>
  15. <result property="type" column="type" jdbcType="VARCHAR"/>
  16. <result property="phoneNumber" column="phone_number" jdbcType="VARCHAR"/>
  17. <result property="identityCardNumber" column="identity_card_number" jdbcType="VARCHAR"/>
  18. <result property="sex" column="sex" jdbcType="VARCHAR"/>
  19. <result property="address" column="address" jdbcType="VARCHAR"/>
  20. <result property="isLoginUser" column="is_login_user" jdbcType="TINYINT"/>
  21. </resultMap>
  22. <sql id="Base_Column_List">
  23. id,email,name,
  24. fullname,password,photo,
  25. create_time,current_status,type,
  26. phone_number,identity_card_number,sex,
  27. address,is_login_user
  28. </sql>
  29. </mapper>