ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meindert" <meind...@pastelebusiness.com>
Subject RE: Result set map to multiple object
Date Tue, 02 Aug 2005 07:07:26 GMT
Did you have a look at the jpetstore as an example?
http://sourceforge.net/projects/ibatisjpetstore/

-----Original Message-----
From: Varathan, Gunaselan [mailto:Gunaselan.Varathan@umassmed.edu] 
Sent: 01 August 2005 03:43 PM
To: user-java@ibatis.apache.org
Subject: Result set map to multiple object

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

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 01/08/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 01/08/2005
 


Mime
View raw message