ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joson yu <yuqian...@gmail.com>
Subject Re: Suggest that "resultMap" add a "ignoreNotExists" attribute.
Date Thu, 18 Jun 2009 11:41:52 GMT
hi liangfei:
 i meet a situation,just like your example,i need to use the same resultmap
with the two query. and currently ,is there any way to attain the aim.

2009/6/2 liangfei <liangfei0201@gmail.com>

>  Suggest that "resultMap" add a "ignoreNotExists" attribute:
>
>
>
> <resultMap id="xresult" class="xclass" ignoreNotExists="true">
>
>          <result property="a" column="a" />
>
>          <result property="b" column="b" />
>
>          <result property="c" column="c" />
>
>          <result property="d" column="d" />
>
> </resultMap>
>
>
>
> <select id="s1" resultMap="xresult">
>
>          select a, b from x
>
> </select>
>
>
>
> <select id="s2" resultMap="xresult">
>
>          select a, b, c from x
>
> </select>
>
>
>

Mime
View raw message