标签:
<resultMaps>
<resultMap id="FullResultMap" class="t_c_doctor">
<result property="doctor_byyy_id" column="doctor_byyy_id"/>
</resultMap>
<resultMap id="TeamDoctor" class="UseEntity.TeamDoctor" extends="FullResultMap">
<result property="consultation_doctor_team_id" column="consultation_doctor_team_id"/>
</resultMap>
</resultMaps>
t_c_doctor和TeamDoctor是两个在项目中定义好的实体类,t_c_doctor是TeamDoctor的父类,在statements中的select 时,包括consultation_doctor_team_id字段就可以了。官方没有例子,特此记录
标签:
原文地址:http://www.cnblogs.com/zuolijun/p/5443823.html