wanton wrote:
ok, just solved the problem for me, which sounds very similar:
hibernate id generator was inserting the correct value into oracle via jdbc, however oracle was storing a scientific notation number (ie either extremely low or extremely high). this number was then being read back into jdbc and throwing the sql error "numeric overflow".
the culpret was: (drumroll) about a week ago i upgraded my oracle drivers to the ones supplied with oracle 10g because they claimed the drivers were backwards compatible. So, i switched back to the old drivers and everything works fine again.
So if you are using the new drivers (oracle jdbc drivers aka classes12.jar) revert back to the old version (in my case, the one supplied with oracle 8).
hope this helps.
IF IT DOES HELP, RATE MY RESPONSE. CHEERS.
Maybe it's the solution,
I'm using Oracle 8.1.7 and the driver ojdbc14.jar (for Oracle 9.0.2). I saw that there is a driver for Oracle 8.1.7, but this driver is for JDK 1.2 but I'm using JDK 1.4 then I can't try your solution...