-->
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: Timestamp column as hibernate.id property
PostPosted: Tue Sep 05, 2006 5:23 am 
Newbie

Joined: Wed Mar 09, 2005 2:43 pm
Posts: 4
Hibernate version: 2.1.8
xDoclet version: 1.2.3

Hi, we have been using Hibernate for a long time and today we've encountered a new issue.

We have a table with no key columns, and because Hibernate does require at least one we tried to use the most obvious for us and that was a DATE column.
When generating hbm.xml files for my Hibernate "beans", I'm getting

Quote:
SEVERE: Invoking method failed: xdoclet.modules.hibernate.HibernateTagsHandler.ifHasCompositeId, line=169 of template file: jar:file:/..../lib/xdoclet-hibernate-module-1.2.3.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt
.

After looking at source code on xDoclet classes we saw that Timestamp fields were not allowed as single PK.

Our question is: can a Timestamp object be an Hibernate id property?

We've tried a composite bean with two timestamp columns and all works fine :S

Thanks in advance,
Sérgio


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.