-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Oracle 9i TIMESTAMP causing type-mapping issues I believe
PostPosted: Mon Oct 17, 2005 3:54 pm 
Beginner
Beginner

Joined: Thu Oct 13, 2005 3:40 pm
Posts: 29
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 ... AskForHelp

Hibernate 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]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.