-->
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.  [ 5 posts ] 
Author Message
 Post subject: Oracle + Date + Timestamp + Key
PostPosted: Wed May 25, 2005 8:36 am 
Newbie

Joined: Wed May 25, 2005 8:28 am
Posts: 18
I have a table that has a composite primary key with one of the fields that is of type Date.
The mapping configuration works, but when I execute a query in the table occurs the following error:
Connot perform lookups on timestamps.

I'm using hibernate 3.0 and Oracle 9.0.2 and the Oracle9Dialect.
Why the Date field is using org.hibernate.type.TimestampType instead of org.hibernate.type.Date?
I've seen in source that org.hibernate.type.TimestampType is who throws the exception.

There is some walkthrought? I dont have power to change the database scheme.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Always use latest versions of Hibernate.


Top
 Profile  
 
 Post subject: Recent
PostPosted: Wed May 25, 2005 8:48 am 
Newbie

Joined: Wed May 25, 2005 8:28 am
Posts: 18
I'll try...


Top
 Profile  
 
 Post subject: Don't worked
PostPosted: Wed May 25, 2005 12:08 pm 
Newbie

Joined: Wed May 25, 2005 8:28 am
Posts: 18
It didn't function


Top
 Profile  
 
 Post subject: Other Exception
PostPosted: Wed May 25, 2005 12:13 pm 
Newbie

Joined: Wed May 25, 2005 8:28 am
Posts: 18
Now other exception occur

null=java.util.NoSuchElementException


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

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.