ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Moore <j...@jmsd.co.uk>
Subject Re: Generate a list of Integers?
Date Thu, 11 May 2006 17:21:25 GMT
Ted Schrader wrote:

> Hi John,
>
> I'm not sure if this will do it, but try this:
>
> <select id="myQuery" resultClass="java.lang.Integer">
>   SELECT id
>       FROM ID_TABLE
> </select>
>
Spot on! It worked fine, thanks. I was getting confused about what the 
result class meant, as this actually returns a List of Integers, not an 
Integer.

John


-- 
==============================================
John Moore  -  Norwich, UK  -  john@jmsd.co.uk
==============================================

Mime
View raw message