Hibernate: Found: float, expected: double precision
- by Frederic Morin
I have a problem with the mapping of Oracle Float double precision datatype to Java Double datatype. The hibernate schema validator seems to fail when the Java Double datatype is used.
org.hibernate.HibernateException: Wrong column type in DB.TABLE for column amount. Found: float, expected: double precision
The only way to avoid this is to disable schema validation and hope the schema is in sync with the app about to run. I must fix this before it goes out to production.
App's evironment:
- Grails 1.2.1
- Hibernate-core 3.3.1.GA
- Oracle 10g