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 Tue, 28 Jun 2005 12:47:25 GMT
That is what I figured.  Thanks Nathan and Clinton for your help.
 
 

Thanks.

Carson Reinke
creinke@marketingassociates.com
P: 248.333.7700 x108  

	-----Original Message-----
	From: Clinton Begin [mailto:clinton.begin@gmail.com] 
	Sent: Monday, June 27, 2005 10:50 PM
	To: user-java@ibatis.apache.org
	Subject: Re: Map of Objects for Result
	
	

	You're better off with a domain object anyway.  Maps are poor.
	
	Cheers,
	Clinton
	
	
	On 6/27/05, Carson Reinke <creinke@marketingassociates.com>
wrote: 

		Ok...that doesn't help.  I am just going to create a
domain object.
		
		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 3:57 PM
		To: user-java@ibatis.apache.org 
		Subject: Re: Map of Objects for Result
		
		
		Java baby!
		
		On Jun 27, 2005, at 1:29 PM, Carson Reinke wrote:
		
		> 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