Quote:
The format of the saved id's are '1,3E-76' or '4,7E-105'.
I've also noticed similar behavior. It doesn't happen for every table, but it's reproducible when I find it. The problem doesn't seem to be with Hibernate, however. I've traced into the code and found that hibernate IS generating the correct PK, but somehow when it gets saved in the DB it's always some strange number. I am also using Hibernate 2.1.4 with Oracle 8.
One thing I've noticed is that my column is type
Integer. Once I switched it to
Number the problem went away. The weird thing is that we have many tables with Integer PK columns and this problem is sporadic. I've tried switching oracle jdbc drivers, but that didn't help. I also ran the test against a SQLServer database and the values inserted were correct. It seems like a problem with Oracle to me, possibly with our installation.