What is the JPA / Hibernate mapping for ORACLE NUMBER column to a Double typed property
Issue
-
Is it possible to map a NUMBER(38,6) to Double java property? When I try it, following error is raised when schema validator executes
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: THS_CHARGE_THRESHOLD, expected: double precision at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
Environment
- Hibernate
- Java Persistence API (JPA)
- Oracle
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
