-->
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.  [ 2 posts ] 
Author Message
 Post subject: hibernate sequence id generator and PostgreSQL
PostPosted: Tue Aug 03, 2004 3:02 pm 
Newbie

Joined: Tue Aug 03, 2004 2:57 pm
Posts: 2
Location: Toronto
Hi,

We are trying to use the 'sequence' generator type for IDs in PostgreSQL but the columns are created as bigint and there appears to be no way to generate the next ID in the sequence.

I guess this is only a problem since we have applications that are external to hibernate creating records.

Has anyone managed to work around this? Would creating our own sequence numbers interfere with a running Hibernate application?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 3:04 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, you can create your own sequence. If the builtin identifier generators are not what you want, implement IdentifierGenerator yourself.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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