Mybatis mapping file database table column names and contact POJO member of a domain

 

Here is Mybatis of SQL mapping files.

<?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">

    <select id="findbyname" resultType="user" parameterType="String">
        SELECT * FROM user1 WHERE Login_name = #{name}
    </select>

</mapper>

 

Guess you like

Origin www.cnblogs.com/lbrs/p/11669153.html