Hello,
I'm currently using Hibernate 4.1.4 with Oracle 10g and am running into issues when my Oracle data type is FLOAT and my java data type is double. When hbm2ddl.auto is set to validate I receive the following error:
Code:
org.hibernate.HibernateException: Wrong column type in TABLE_NAME for column column_name. Found: float, expected: double precision.
According to the Oracle docs located at http://docs.oracle.com/javadb/10.6.2.1/ref/rrefsqlj27281.html, FLOAT and DOUBLE PRECISION can be considered the same thing as long as the FLOAT's precision is sufficient. I'm currently using the default, 53, which is far more than enough for it to be treated as a DOUBLE PRECISION. So it looks to me like the validation should succeed, but it isn't. Is there a reason for this? Perhaps Hibernate doesn't have access to the precision and is failing defensively? Or is this a bug?
Thanks