ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: passing a list to sqlmap
Date Thu, 18 Oct 2007 18:44:27 GMT
you need to remap the results, and it's probably a better idea to
build that string in java code anyway.

Larry


On 10/18/07, ramy <ramanayerramsetty@gmail.com> wrote:
>
> I have a list over which the select statement has to be run
> my sql is like
>
> <select id="selectAssgnResults"  parameterClass="java.util.List"
>
>     resultMap="RschResult" >
>     select
>     <iterate  property="reportData" open=" " close=" " conjunction=",">
>       $[]$
>
>      </iterate>
>
>        from RSCH
>
>   </select>
>
>
> It throws me an error
>
> --- Check the selectAssgnResults.
> --- Check the parameter map.
> --- Cause: com.ibatis.common.beans.ProbeException: Error getting ordinal
> list from JavaBean. Cause java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>
> --
> View this message in context: http://www.nabble.com/passing-a-list-to-sqlmap-tf4648784.html#a13280522
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Mime
View raw message