-->
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: Separate sequence for each class in PostgreSQL
PostPosted: Mon Feb 20, 2006 10:12 am 
Newbie

Joined: Mon Aug 29, 2005 2:13 am
Posts: 7
Schema export generates one sequence 'hibernate_sequence'
and uses it for all entities. Is it possible to use separate sequence
for each entity class?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 11:30 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
what is your default id generation strategy in your mapping files?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 8:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can set the sequence to use if you supply the approrpriate paramater to the generator. The manual will show you how. Otherwise it defaults to the universal sequence.


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.