Exception 'org.hibernate.HibernateException: Found: date, expected: timestamp' on deploy when using reverse engineering to generate Seam entities from Oracle database.
Issue
-
Exception 'org.hibernate.HibernateException: Found: date, expected: timestamp' on deploy when using reverse engineering to generate Seam entities from Oracle database.
Caused by: org.hibernate.HibernateException: Wrong column type in C4.CALENDARIO for column DATA_INIZIO_POPOLAMENTO. Found: date, expected: timestamp
at org.hibernate.mapping.Table.validateColumns(Table.java:284)
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1130)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:358)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:670)
... 61 more
Environment
- JBoss Enterprise SOA Platform 5.1.0
- Seam 2
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.
