File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Spring returns a BigDecimal for an Integer RDBMS Column
Joined: Apr 16, 2004
Dec 25, 2011 06:24:42
Spring returns a
for an Integer RDBMS Column
"Spring Recipes (covers Spring 3)" page 599 uses a Derby table named
Vehicle with a column : WHEEL INT.
On page 615 the
<List><Map><String,Object>> queryForList (String sql)
is used with "SELECT * FROM VEHICLE" and within the iteration of the list of maps
there is this line :
vehicle.setWheel ((Integer) row.get("WHEEL")) ;
All the above looks fine to me - a
But when I try using Oracle XE 11.2.0 table EMP column EMPNO NUMBER(4) a
(In oracle NUMBER allows both a precision and a scale).
What exactly is going on ? Thank you for any help.
I agree. Here's the link:
subject: Spring returns a BigDecimal for an Integer RDBMS Column
Getting a resultSet from a CallableStatement
Invalid number specified in a numeric field
JSP attendance management project error
Cannot get new screen to work properly; similar screen was recently added successfully
Mixing of code - raw and generic
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014