-->
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: Primary Key uuid.string or uuid.hex on DB2
PostPosted: Mon Dec 15, 2003 3:26 pm 
Beginner
Beginner

Joined: Sat Nov 22, 2003 3:54 pm
Posts: 42
Dear All,

I wanted to know which can be the better strategy for primary key generation on the DB2 database if we have choice between uuid.string or uuid.hex.

What does the hibernate team suggests for this . For a new application that is going to be build, should we make use of sequence/identity functionality that is being provided by the DB's or should go for algorithms like UUID.

Thanks


Top
 Profile  
 
 Post subject: Re: Primary Key uuid.string or uuid.hex on DB2
PostPosted: Tue Dec 16, 2003 5:00 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
vijpan wrote:
For a new application that is going to be build, should we make use of sequence/identity functionality that is being provided by the DB's or should go for algorithms like UUID.

It depends the abstraction you want from the DB. identity may be problematic since it needs to insert an empty line before having the id. Sequence Hilo is probably one of the best, since it minimize the DB roundtrip wo the need of a new table and it can still be inserted in a transaction (not hilo unfortunatly).

_________________
Emmanuel


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.