After several searches and attempts to make TIMESTAMP work, using the reverse engineering tool for hibernate to build the POJOs, I could not reverse engineer a table with a column with TIMESTAMP in Oracle 9i
I used the following type mapping in the reveng.xml.
<type-mapping>
<sql-type jdbc-type="TIMESTAMP" hibernate-type="org.hibernate.type.TimestampType" />
</type-mapping>
The tool works fine when creating the POJOs without the TIMESTAMP column. But the Hibernate tool works fine when I reverse engineer a table without the TIMESTAMP column.
what am I doing wrong? I am using Hibernate 3.0.5 and Tools version 3.1.0 alpha
The error I am getting is
Code:
org.hibernate.cfg.JDBCBinderException:The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.
any help would be greatly appreciated. Am I missing an additional JAR file? I only included those that are stated to be "required" in the _readme.txt file of the lib folder of hibernate-3.0.5
Thanks
Atul
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelpHibernate version: Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:The generated SQL (show_sql=true):Debug level Hibernate log excerpt:[/code]