ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <brandon.goo...@gmail.com>
Subject Re: lists as parameterClass
Date Thu, 20 Jul 2006 12:35:29 GMT
Yes, this should work.

<select parameterClass="list">
select * from odm_product where id IN
    <iterate
      open=" ("
     close=")" conjunction=",">
      #[]#
    </iterate>
</select>

Brandon Goodin

On 7/20/06, Thomas Karl Schwaerzler <Thomas.Schwaerzler@uibk.ac.at > wrote:
>
>
> hello,
>
> i'd like to do a query that looks like:
>
> select * from odm_product where id IN (1,2);
>
>
> where i'd like to pass over a list of long values
> as parameter ( java.lang.Long[] )
>
> is there something like this posssible with ibatis?
>
> greets
> t.
>

Mime
View raw message