ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Schrader" <tschra...@gmail.com>
Subject Re: Generate a list of Integers?
Date Thu, 11 May 2006 17:13:11 GMT
Hi John,

I'm not sure if this will do it, but try this:

<select id="myQuery" resultClass="java.lang.Integer">
   SELECT id


On 11/05/06, John Moore <john@jmsd.co.uk> wrote:
> I'm just getting into Ibatis and am enjoying using it. I now have what
> is probably rather a dumb question. Hitherto I have been using result
> maps with my own classes, so Ibatis maps database columns to properties
> in my class. I now want to have Ibatis simply return me a list of
> Integers. I have a table with an id column, defined as int, and I simply
> want a list of those ids. How do I do this? I'm getting a bit confused
> with resultMaps and resultClasses.
> TIA,
> John
> --
> ==============================================
> John Moore  -  Norwich, UK  -  john@jmsd.co.uk
> ==============================================

View raw message