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: Array as parameter
Date Wed, 15 Dec 2004 22:08:21 GMT
no, however you can place it in a map with the key "parentIds" and use
the same syntax in the body of the select. Only, change your
parameterClass to a map.


On Wed, 15 Dec 2004 13:49:39 -0700, Nathan Maves <Nathan.Maves@sun.com> wrote:
> can you specify an array as a valid parameter class?
> 
> i.e.
> 
> <select id="getReportIdsByParentIds" resultClass="string"
> parameterClass="java.lang.String[]"> <!--Not Sure what to put for the
> parameter type-->
>         select
>             report_id
>         from
>             rv_report_hierarchy
>         where
>             parent_id in  (
>                 <iterate property="parentIds" conjunction=",">
>                     #parentIds[]#
>                 </iterate>
>             )
>     </select>
> 
>

Mime
View raw message