Newer
Older
sample-kotlin-spring+mybatis / src / main / resources / mapper / com / example / sample / BookMapper.xml
yhornisse on 12 Mar 2020 450 bytes Add Sample.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="mapper.com.example.sample">
    <resultMap id="Book" type="com.example.sample.entity.BookEntity">
        <id property="id" column="id"/>
        <result property="name" column="book_name"/>
        <result property="author" column="author_name"/>
    </resultMap>
</mapper>