ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Glezen <pgle...@us.ibm.com>
Subject Re: Message: no WRITABLE property (resolved)
Date Tue, 16 Aug 2005 17:15:34 GMT




Hi Folks.

After following the advice of the responses:

1. Removing capitals from the first two letters of the property name
2. Adding the nullValue attribute in the result map

it works now.  Thanks.

- Paul


Prashanth Sukumaran <prashanthsukumaran@yahoo.com> wrote on 08/16/2005
09:29:50 AM:

> Hi Paul,
>
> make the line
>
> <result property="pnoticeCompanyNo" column="P_NOTICE_COMPANY_NO"
> javaType="long"
> jdbcType="INTEGER"/>
>
> to
>
> <result property="pnoticeCompanyNo" column="P_NOTICE_COMPANY_NO"
> javaType="long"
> jdbcType="INTEGER" nullValue="0"/>
>
>
> This is ridiculous, I know.  I have also wasted so much time on this
> thing before.  But the issue
> is since it is a privimitive type and if the sql returns a NULL it
> throws an nullpointer
> exception.
>
> Rgds
>
> Prashanth Sukumaran.
Mime
View raw message