ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toshiaki Takashima <tak...@jp.fujitsu.com>
Subject Re: TypeHandler for java primitive
Date Fri, 27 Jan 2006 17:14:14 GMT
hi,

> Why not just use Integer?


I think it is a little bit messy 
to calculate the numeric property 
when you use Integer because you 
have to use Integer.intValue method.


Don't you think so?





> 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
> > ---------------------------------------------------------
> >
> >
> >


---------------------------------------------------------
第二ソリューションビジネス統括部・第一ソリューション部

高島俊昭
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