MessageMapper.xml 1.4 KB

123456789101112131415161718192021222324252627
  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.neko.mapper.MessageMapper">
  6. <resultMap id="BaseResultMap" type="com.neko.domain.pojo.Message">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="messageId" column="message_id" jdbcType="VARCHAR"/>
  9. <result property="senderId" column="sender_id" jdbcType="BIGINT"/>
  10. <result property="receiverId" column="receiver_id" jdbcType="BIGINT"/>
  11. <result property="receiverType" column="receiver_type" jdbcType="TINYINT"/>
  12. <result property="messageType" column="message_type" jdbcType="TINYINT"/>
  13. <result property="contentId" column="content_id" jdbcType="BIGINT"/>
  14. <result property="isEncrypted" column="is_encrypted" jdbcType="TINYINT"/>
  15. <result property="status" column="status" jdbcType="TINYINT"/>
  16. <result property="sendTime" column="send_time" jdbcType="TIMESTAMP"/>
  17. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  18. </resultMap>
  19. <sql id="Base_Column_List">
  20. id,message_id,sender_id,
  21. receiver_id,receiver_type,message_type,
  22. content_id,is_encrypted,status,
  23. send_time,create_time
  24. </sql>
  25. </mapper>