Demo1Mapper.xml 530 B

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.hr.repository.jpa.Demo1Jpa">
  6. <resultMap type="com.hr.repository.domain.Demo1Entity" id="Demo1Result">
  7. <id property="fid" column="fid" />
  8. <result property="fname" column="fname" />
  9. </resultMap>
  10. <select id="select1">
  11. select t.* from demo1 t where t.fname like '%'||:name||'%' and t.fid=:id
  12. </select>
  13. </mapper>