ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Reumann" <ric...@gmail.com>
Subject Re: I have a TypeHandler that converts Y/N to boolean, but sometimes Y/N might be null...
Date Thu, 18 May 2006 17:47:00 GMT
On 5/18/06, Niels Beekman <n.beekman@wis.nl> wrote:
> I think your typehandler.valueOf() implementation is incorrect. The
> string passed to it is the string you specified in the attribute
> "nullValue". You should do something like:
>
> public Object valueOf(String s) {
>   return "Y".equals(s);
> }
>

Thanks Niels!!! That was the problem. I would never thought to check
that. Thanks.

-- 
Rick

Mime
View raw message