-->
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: Timestamp in primary composite key.
PostPosted: Sat Feb 19, 2005 4:54 am 
Newbie

Joined: Thu Dec 09, 2004 7:31 am
Posts: 2
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3b4

I can see an exception "cannot perform lookups on timestamps"
in the case I have a composite primary key (Integer, Date)
as a result of insert (save) operation. Is it an intended behaviour?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 01, 2005 1:32 pm 
Newbie

Joined: Tue Mar 01, 2005 1:27 pm
Posts: 4
I am having this problem also. Is it true that a timestamp can't be part of a composite key?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 3:52 am 
Newbie

Joined: Mon Oct 11, 2004 4:08 am
Posts: 15
I have gotten same problem, please help as cannot use date or time


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 9:45 pm 
Newbie

Joined: Mon Oct 11, 2004 4:08 am
Posts: 15
Any findings?

I think that is a bug on Hibernate 3.


Top
 Profile  
 
 Post subject: It is not a bug but a feature
PostPosted: Fri Apr 22, 2005 6:06 am 
Newbie

Joined: Fri Apr 22, 2005 4:33 am
Posts: 9
Including a timestamp field in id/composite-id is never safe because you may never get it back again. However, you can try to use the "calendar" rahter than the "timestamp".

Please refer to the post http://forum.hibernate.org/viewtopic.php?p=2239206 to see detailed information.


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.