commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <>
Subject Re: [DbUtils] problem with BeanHandler
Date Mon, 05 Jul 2004 17:58:26 GMT
Download the latest nightly build and test with that.  DbUtils 1.0 shipped
with a rather simple bean population implementation that causes this
problem.  DbUtils 1.1 will ship with a smarter version that should handle
numbers correctly.

The actual cause of the problem is that Oracle is returning BigDecimal
objects for numeric columns and your bean has an int property so DbUtils
doesn't call the setter method.


--- Patrick Hess <> wrote:
> Hi there,
> I'm trying at the moment to replace some my JDBC code with DbUtils. 
> Currently I have a problem with the BeanHandler. I'm using an Oracle 
> 8.1.7 database with thin driver on JDK 1.3 on Windows.
> My problem: except with the BeanHandler everything works fine, my 
> results are like expected. When using the BeanHandler all numeric fields
> are 0 while string values are set. I tried different variations of the 
> bean like using int, long, Integer or Long for the numeric properties.
> I didn't found any references to such a problem on google so I think I 
> did some mistake. Can anyone give me a hint to find out what's going on?
> Thanks in advance, have a nice day
>     Patrick
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message