ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Mapping HSQLDB's binary using iBatis
Date Tue, 27 May 2008 20:29:57 GMT
This is an inline parameter mapping:

<insert id="foo" parameterClass="Bar">
  insert into foo (binaryField) values(#binaryField:BINARY#)
</insert>

Setting the JDBC type to BINARY here will help if you ever need to set the
field to NULL.  If it won't ever be NULL, then you don't need the JDBC type
(but it doesn't hurt to add it anyway).

Jeff Butler




On Tue, May 27, 2008 at 3:10 PM, Jonathan Alvarsson <
jonathan.alvarsson@gmail.com> wrote:

>
> On Tue, May 27, 2008 at 6:32 PM, Jeff Butler <jeffgbutler@gmail.com>
> wrote:
>
>> Inline parameter mappings only - and only for NULL capable fields!  I
>> detest the XML parameter maps!  :)
>>
>
> huh which syntax would that be? I am not great at the lingo I feel... :)
>
> --
> // Jonathan

Mime
View raw message