|
|
|
@ -0,0 +1,20 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!-- 定义XML文档类型为MyBatis的mapper,指定了DTD的URL -->
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<!-- 定义了一个mapper元素,指定了namespace,这个namespace对应于Mapper接口的全路径 -->
|
|
|
|
|
<mapper namespace="com.yami.shop.dao.MessageMapper">
|
|
|
|
|
<!-- 定义了一个resultMap,用于将数据库结果集的列映射到Java对象的属性 -->
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.Message">
|
|
|
|
|
<!--
|
|
|
|
|
这是一个警告注释,由MyBatis Generator自动生成。
|
|
|
|
|
@mbg.generated 表示这个resultMap是由MyBatis Generator工具自动生成的,警告开发者不要手动修改。
|
|
|
|
|
-->
|
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="user_name" jdbcType="VARCHAR" property="userName" />
|
|
|
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
|
|
|
<result column="contact" jdbcType="VARCHAR" property="contact" />
|
|
|
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
|
|
<result column="reply" jdbcType="LONGVARCHAR" property="reply" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
</mapper>
|