CommentMapper.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.qxgmat.data.dao.CommentMapper">
  4. <resultMap id="BaseResultMap" type="com.qxgmat.data.dao.entity.Comment">
  5. <!--
  6. WARNING - @mbg.generated
  7. -->
  8. <id column="id" jdbcType="INTEGER" property="id" />
  9. <result column="user_id" jdbcType="INTEGER" property="userId" />
  10. <result column="nickname" jdbcType="VARCHAR" property="nickname" />
  11. <result column="avatar" jdbcType="VARCHAR" property="avatar" />
  12. <result column="channel" jdbcType="VARCHAR" property="channel" />
  13. <result column="position" jdbcType="INTEGER" property="position" />
  14. <result column="is_show" jdbcType="INTEGER" property="isShow" />
  15. <result column="is_special" jdbcType="INTEGER" property="isSpecial" />
  16. <result column="is_system" jdbcType="INTEGER" property="isSystem" />
  17. <result column="sort" jdbcType="INTEGER" property="sort" />
  18. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  19. </resultMap>
  20. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.qxgmat.data.dao.entity.Comment">
  21. <!--
  22. WARNING - @mbg.generated
  23. -->
  24. <result column="content" jdbcType="LONGVARCHAR" property="content" />
  25. </resultMap>
  26. <sql id="Base_Column_List">
  27. <!--
  28. WARNING - @mbg.generated
  29. -->
  30. `id`, `user_id`, `nickname`, `avatar`, `channel`, `position`, `is_show`, `is_special`,
  31. `is_system`, `sort`, `create_time`
  32. </sql>
  33. <sql id="Blob_Column_List">
  34. <!--
  35. WARNING - @mbg.generated
  36. -->
  37. `content`
  38. </sql>
  39. </mapper>