ResultMap 结果集映射

PPG007 ... 2021-12-28 Less than 1 minute

# ResultMap 结果集映射

当实体类中只有基本类型时:

<resultMap id="userMapper" type="pojo.User">
    <id column="id" property="id" javaType="java.lang.Integer"/>
    <result column="username" property="username" javaType="java.lang.String"/>
    <result column="password" property="password" javaType="java.lang.String"/>
</resultMap>
1
2
3
4
5
Last update: December 28, 2021 13:51
Contributors: PPG007