ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: resultmaps
Date Thu, 18 May 2006 12:28:47 GMT
I think you can use resultmap extension, first define a resultmap for
the 3 properties, then create a new one that extends it with the other
17 fields.







From: Tom.Stroobants@persgroep.be [mailto:Tom.Stroobants@persgroep.be] 
Sent: donderdag 18 mei 2006 14:26
To: user-java@ibatis.apache.org
Subject: resultmaps


Hi all !! 

I have the followiing situation: 

I have a table with 20 fields in it. 

I have 2 different queries. 
One query where I have to select all fields and another query where I
have to select only 3 fields from that table. 

Can I resuse the same resultmap for those 2 queries ? And yes ... How ? 
I have tried it but I got some error on the properties that were not
filled in ... 

Thanks in advance ! 

View raw message