ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Bibb <richard.b...@aimhedge.com>
Subject Re: Populating a Pojo with two ArrayLists
Date Wed, 19 Aug 2009 11:17:28 GMT

I could do that but it then doesn't map onto my model. The data is time
series data and needs to be available as Array's or ArrayLists. To use a
DataValePair as you suggest will slow my code down markedly as I need to
load quite large amounts of data 


Ingmar Lötzsch wrote:
> 
>> I'm trying to populate a pojo with two array lists and my code doesn't do
>> what I intended
>> 
>> The pojo has two arrayLists as memebers one called 'dates' the other
>> 'values'
> 
> Why can't you create
> 
> class DateValuePair
> {
> 	private Date date;
> 
> 	private Double value;
> 
> 	... getter, setter
> }
> 
> and query for List<DateValuePair>?
> 
> 

-- 
View this message in context: http://www.nabble.com/Populating-a-Pojo-with-two-ArrayLists-tp25041366p25042175.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message