Dao.xml.ftl 573 B

123456789101112
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="${package}.modules.${moduleName}.dao<#if subModuleName??>.${subModuleName}</#if>.${ClassName}Dao">
  4. <resultMap type="${package}.modules.${moduleName}.entity<#if subModuleName??>.${subModuleName}</#if>.${ClassName}Entity" id="${className}Map">
  5. <#list columnList as column>
  6. <result property="${column.attrName}" column="${column.columnName}"/>
  7. </#list>
  8. </resultMap>
  9. </mapper>