ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Mapper parsing problem
Date Tue, 02 Feb 2010 14:25:50 GMT
That is by design and will not change.  I suggest that when formatting
parameters, put the entire thing on a newline when necessary.  It's
far too unreadable if you spit them up.

Clinton

On 2010-02-02, Marco Speranza <marco.speranza79@gmail.com> wrote:
> Hi all Guys,
>
> we have found a little problem on iBatis3.
> We have create a xml mapper file with this query:
>
>
> <update id="myUpdate" parameterType="MyBean"  flushCache="true">
>
>         UPDATE TAB
>         <set>
>             <if test="id != null"> ID = #{id}, </if>
>             <if test="desc != null"> DESC = #{desc, jdbcType=TIMESTAMP,
> typeHandler=SqlTimestampAsLongTypeHandler}, </if>
>         </set>
>         WHERE
>
>       ...
>
>  </update>
>
>
> where SqlTimestampAsLongTypeHandler is an our type handler.
>
> if there is a TAB character or a NEW LINE character between javaType and
> typeHandler parameter, the type handler is ignored.
>
> thanks all
>
>
>
> --
> Marco Speranza <marco.speranza79@gmail.com>
>

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message