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: inline map format: empty String in nullValue
Date Sat, 09 Aug 2008 16:03:52 GMT
I recommend not using nullValue replacement.  It's confusing and doesn't
work the way most people would expect it to, quite the opposite actually.
It's used to map nullable columns to non-nullable class members, like int,
long, double, boolean etc...

It will not be available in iBATIS 3.

Clinton

On Sat, Aug 9, 2008 at 9:41 AM, John Clash <spam.trash@seznam.cz> wrote:

>
> If i want to set a nullValue replacement for an empty String I use this in
> an
> explicit parameterMap:
>
> <parameter property="street" jdbcType="VARCHAR" nullValue=""/>
>
> I want to do the same thing using inline parameters. I've tried the
> following:
>
> #street:VARCHAR:""#
> #street:VARCHAR:#
> #street,jdbcType=VARCHAR,nullValue=""#
> #street,jdbcType=VARCHAR,nullValue=#
>
> but none works.
>
> How should i write the statement?
>
> Thanks, Ondra
> --
> View this message in context:
> http://www.nabble.com/inline-map-format%3A-empty-String-in-nullValue-tp18905940p18905940.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Mime
View raw message