ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fer knjige <ferknj...@gmail.com>
Subject Re: Can I use Set instead of List?
Date Tue, 07 Apr 2009 04:53:17 GMT
Unfortunately this doesn't work. It returns following error:

Exception in thread "main" java.lang.ClassCastException:
java.util.ArrayList.

Solution?

2009/4/6 Larry Meadors <larry.meadors@gmail.com>

> return new LinkedHashSet(queryForList(...));
>
> Larry
>
>
> On Sun, Apr 5, 2009 at 10:53 PM, fer knjige <ferknjige@gmail.com> wrote:
> > Hi,
> >
> > I have a simple query:
> >
> > select * from Products.
> >
> > I want to have results in Set not in List. How can I do it since
> > method 'queryForList' returns only List?
> >
> > Thanks in advance!
> >
> >
> >
>

Mime
View raw message