-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem when using Timestamp type in Hibernate
PostPosted: Wed Jun 21, 2006 2:36 pm 
Beginner
Beginner

Joined: Fri Jun 16, 2006 7:47 am
Posts: 27
Hi,

I am getting:
"java.lang.UnsupportedOperationException: cannot perform lookups on timestamps "

My Data type in the Database for a column is the Timestamp type.

In the POJO, I set the mapping to java.sql.Timestamp wrapper class.

Similarly, in the hbm file, I set the type as "timestamp".

However, it throws the "java.lang.UnsupportedOperationException: cannot perform lookups on timestamps " when doing an operation on the query.

Please help!

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 5:29 pm 
Beginner
Beginner

Joined: Tue May 23, 2006 10:53 am
Posts: 24
Try to use java.util.Calendar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 7:35 pm 
Senior
Senior

Joined: Sun Jun 04, 2006 1:58 am
Posts: 136
which dialect ??

_________________
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.