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: Dynamic sql map with java.util.List
Date Mon, 27 Aug 2007 17:27:01 GMT
Please open a JIRA ticket on this if it does not exist. In the meantime you
may want to pass your list in nested in a map.

Brandon

On 8/27/07, Michel Amaral <michelcabral@gmail.com> wrote:
>
> When I use parameterClass of java.util.List type with dynamic notation
> ($[].field$), the property (after dot) is ignored and the toString method of
> the current list element is called instead of the indicated property, for
> example, the follow statement map is calling toString twice:
>
> <select id="<statement id>" remapResults="true" resultMap="<result map
> name>"
> parameterClass="java.util.List">
> SELECT <cols>
> FROM <clause>
>  <dynamic prepend="WHERE">
>   <iterate conjunction="AND">
>    $[].field$ $[].operator$ #[].value#
>    </iterate>
>  </dynamic>
> </select>
>
>
>

Mime
View raw message