parent
9965bf2e56
commit
adbd10d8a2
@ -1,5 +1,14 @@
|
||||
<?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="${bussiPackage}.mapper.${entityName}Mapper">
|
||||
<resultMap type="${bussiPackage}.${entityPackage}.${entityName}" id="${entityName?uncap_first}Result">
|
||||
<#list originalColumns as po>
|
||||
<#if po.fieldName == primaryKeyField>
|
||||
<id property="${po.fieldName}" column="${po.fieldColumn}"/>
|
||||
<#else>
|
||||
<result property="${po.fieldName}" column="${po.fieldColumn}"/>
|
||||
</#if>
|
||||
</#list>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
Loading…
Reference in new issue