Hibernate: Found: float, expected: double precision

Posted by Frederic Morin on Stack Overflow See other posts from Stack Overflow or by Frederic Morin
Published on 2010-03-26T16:36:12Z Indexed on 2010/03/26 16:53 UTC
Read the original article Hit count: 808

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

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about grails