-->
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: Generator best strategy with hibernate 3.1 with postgresql 8
PostPosted: Mon Dec 05, 2005 12:10 pm 
Newbie

Joined: Fri Jul 02, 2004 2:38 pm
Posts: 3
I'm using Hibernate version 3.1 rc2, Oct 07, 2005 with Postgresql 8.0.1.

Im trying to use a unique id generator into all tables. What kind of strategy should I implement? Is that right using one sequence to all tables into database? May I use "seqhilo" to all <generator>´s using the same sequence? How large is the range of unique ids generated?

thanks for any help.

Daniel.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 7:32 pm 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
i would say it depends how many rows you plan to fill into that database. i would consider it a best practice to use a different sequence for every table. actually i see no reason not doing so.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 10:13 am 
Newbie

Joined: Fri Jul 02, 2004 2:38 pm
Posts: 3
MikePloed wrote:
i would say it depends how many rows you plan to fill into that database. i would consider it a best practice to use a different sequence for every table. actually i see no reason not doing so.



OID ( Object ID ).

may I use sequence generator tag using one sequence to all tables? range are bigint/long 9x10^9 is good enough.

Please, tell me your opinion. Thanks in advance.

Daniel.


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.