I believe the new Mapper binding functionality would resolve this....

Nathan, are you up for trying it out?

Cheers,
Clinton


On 5/27/05, Nathan Maves <[EMAIL PROTECTED]> wrote:
Yeah, I have used generics everywhere but the missing link is when it
gets to the DAO layer.

You can cast the List but you will always get the warning for and
unchecked assignment when the List is returned from the sqlmap.

List<Student> students = (List<Student>)executeQueryForList
("getStudents",null);

Looks good but does not resolve the warnings.

Nathan


On May 27, 2005, at 2:30 PM, Larry Meadors wrote:

> I have done that with my DAO layer.
>
> SqlMap returns it as List, but you can cast it.
>
> Worked great. :)
>
> Larry
>
>
> On 5/27/05, Nathan Maves < [EMAIL PROTECTED]> wrote:
>
>> Since apple is taking then sweet time I just got Java 1.5.  I am
>> diving in head first but I am curious about what the plans for
>> Generics are.
>>
>> Will I batis support them?
>> Could there be a way to specify the list type instead of Object?
>>
>> i.e.
>> return a List<Student> back based on the result class of the query?
>>
>> Nathan
>>
>>
>


Reply via email to