ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varathan, Gunaselan" <Gunaselan.Varat...@umassmed.edu>
Subject Result set map to multiple object
Date Mon, 01 Aug 2005 13:43:26 GMT
Hi,
I am new to ibatis, I am trying to map a result of a query to multiple
java objects.

Can any one give me an example of how to do this.

Example,
Select id, name, address from person;

And I want to map to 

Id and name to Person object 
Address to address object.

Also pls provide an equivalent way of accessing to multiple objects once
query has returned its results. either to use queryForObject or
queryForList


Thanks
Guna


Mime
View raw message