ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Gottschling <jo...@myndian.de>
Subject Re: How to Map 2 Columns to a List Property in an Object
Date Tue, 15 Jan 2008 06:42:14 GMT
Hello,

perhaps you like to use a union in a second (sub) select

<resultMap id="someAddressResult" class="SomeClass">
   <result property="address.addressLine" select="selectAdressLines" />
   //.... more columns
</resultMap>

But this uses N+1 Selects and because you use a stored procedure, this 
may be is not possible in your case.

Look at page 34 following in the documentation:
<http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2_en.pdf>

Greetings, Jörg

-- 
Jörg Gottschling
web:    http://www.myndian.de
eMail:  joerg@myndian.de
GnuPG:  0x9B1C64BB
ICQ:    177003788

Mime
View raw message