ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lieven De Keyzer" <lieven_dekey...@hotmail.com>
Subject Re: Re: struts vs ibatis - Integer type
Date Fri, 06 May 2005 19:24:45 GMT


>From: Larry Meadors <larry.meadors@gmail.com>
>Reply-To: lmeadors@apache.org
>To: ibatis-user-java@incubator.apache.org
>Subject: Re: Re: struts vs ibatis - Integer type
>Date: Fri, 6 May 2005 12:31:35 -0600
>
>On 5/6/05, Lieven De Keyzer <lieven_dekeyzer@hotmail.com> wrote:
> >
> >
> > But as far is I see, when a Bean is constructed, an int property will
> > always
> > be 0, when not specified. So when I perform an insert through iBatis
>
>
>Yes, int properties will always have a non-null value...if you need 
>nullable
>properties, you must use the Object wrappers instead (Integer instead of
>int, etc...)

Ah, I see.

>
>SQLmaps, this beanproperty will always be an integer? Where exactly are the
> > commons classes needed and created ?
> > Perhaps I'm not really understanding the purpose of the ConvertUtils and
> > BeanUtils.
>
>
>ConvertUtils and BeanUtils are not used in any way in iBATIS. Period.

I wasn't questioning your knowledge about the the iBatis framework. :)
I was just wondering about these classes because they were mentioned in an 
earlier mail.

>
>Larry



Mime
View raw message