ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Kauchali" <abdullah.kauch...@isanusi.com>
Subject RE: Arrays instead of java.util.List?
Date Sat, 07 Oct 2006 17:25:44 GMT
Hi Larry,

Yup, I can do that.  But how can I make iBatis' internal 1:M feature
populate arrays of POJO's instead of java.util.List?

What's the best way of doing that?

Regards,

A





> -----Original Message-----
> From: larry.meadors@gmail.com [mailto:larry.meadors@gmail.com] On Behalf
> Of Larry Meadors
> Sent: Saturday, October 07, 2006 7:12 PM
> To: user-java@ibatis.apache.org
> Subject: Re: Arrays instead of java.util.List?
> 
> Nope, but you can do this easy enough:
> 
> return (YourType[])queryForList("blah.query", parms).toArray(new
> YourType[0]);
> 
> Larry
> 
> On 10/7/06, Abdullah Kauchali <abdullah.kauchali@isanusi.com> wrote:
> >
> > Abdullah Kauchali:
> > > I have a complex type as a Java Bean that I'd like to populate using
> the
> > > 1:M
> > > ibatis facility and I cannot serialize a java.util.List - only array
> of
> > > objects.
> >
> > Complex type as in a web services complex type.
> >
> >


Mime
View raw message