ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro D. Garin" <aga...@gmail.com>
Subject Re: <update> with parameterMap and parameterClass ?
Date Wed, 26 Nov 2008 13:05:25 GMT
Hi Ingmar


> provide an instance of Person as parameter, witch contains the values to
> store.
>
> <update id="update1" parameterClass="Person">
>  UPDATE Person SET
>    name = #name:VARCHAR#,
>    lastname = #lastname:VARCHAR#
>  WHERE id = #id:INTEGER#
> </update>
>

OK, but, what if I have defined a parameterMap for an <insert>? can't reuse
it for an <update> statement?

Mime
View raw message