ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carson Reinke" <crei...@MarketingAssociates.com>
Subject RE: Map of Objects for Result
Date Mon, 27 Jun 2005 19:29:57 GMT
Which document?  The generic developer or Java Developer?

Thanks.

Carson Reinke
creinke@marketingassociates.com
P: 248.333.7700 x108  

-----Original Message-----
From: Nathan Maves [mailto:Nathan.Maves@Sun.COM] 
Sent: Monday, June 27, 2005 2:49 PM
To: user-java@ibatis.apache.org
Subject: Re: Map of Objects for Result


Please read starting page 24 of the manual concerning "Map Results"

Nathan

On Jun 27, 2005, at 11:56 AM, Carson Reinke wrote:

> Is there a way to create a HashMap of objects with a result map?  I
> was
> thinking something like this:
>
> <resultMap id="resultId1" class="java.util.HashMap">
>     <result property="obj1.column1" column="COLUMN1"/>
>     <result property="obj2.column2" column="COLUMN2"/> </resultMap>
>
> But that doesn't work because iBATIS does not know what "obj1" and 
> "obj2" are.  Any ideas w/o setting the "select" property?
>
> Thanks.
>
> Carson Reinke
> creinke@marketingassociates.com
> P: 248.333.7700 x108
>


Mime
View raw message