如果SQL语句存在两个相同的查询列名,则映射时,取第一个列名的值进行映射
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
<sqlMap namespace="com.sgcc.mdm.qualitymanage.test.model.Test">
<typeAlias alias="test" type="com.sgcc.mdm.qualitymanage.test.model.Test" />
<resultMap id="testMap" class="test" >
<result column="ISBEGINDBORDER" property="isBegindBorder"/>
</resultMap>
<select id="queryTest" resultMap="testMap" parameterClass="java.util.Map">
select
C.ISBEGINDBORDER,
B.ISBEGINDBORDER
from
TESTA A,
TESTB B
where
A.TESTB_ID = B.ID
</select>
</sqlMap>