ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <lmead...@apache.org>
Subject Re: TypeHandler for java primitive
Date Fri, 27 Jan 2006 17:05:53 GMT
Why not just use Integer?

Larry


On 1/27/06, Toshiaki Takashima <taka-t@jp.fujitsu.com> wrote:
> Hi,
>
>
>
>  You know, when you set resultClass properties to java primitive type
> such as "int", NullPointerException occures if its corresponding Table
> Column value is null.
>
>  You can suppress those Exception by setting "nullValue" property to
> each column in SQL Map xml. But, it is very messy work.
>
>  So, I want to set TypeHandler for int type property in SQL Map Config.
> But my attempt failed. I'm sorry but TypeHandler for java primitive type
> doesn't work.
>
>  Is it a bug or iBATIS policy?
>
>
>
>  thanks,
>
>
> ---------------------------------------------------------
> 第二ソリューションビジネス統括部・第一ソリューション部
>
> 高島俊昭
> mailto:taka-t@jp.fujitsu.com
> 内線  :7576-4407
>
> 株式会社富山富士通
> 〒939-2392 富山県婦負郡八尾町保内2-2-1
> TEL 076-455-3131
> FAX 076-455-0935
> ---------------------------------------------------------
>
>
>

Mime
View raw message