Thread:
 Use UUID as primary key or opaque field 
 fwolff   05 Jun 2006, 08:26 
 Re: Use UUID as primary key or opaque field 
 sma202   19 Jul 2006, 11:49 
 Re: Use UUID as primary key or opaque field 
 fwolff   03 Aug 2006, 07:18 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: sma202 (19 Jul 2006, 11:49) Replies: 1, Views: 25302
Subject: Re: Use UUID as primary key or opaque field
>This solution is even better because primary key is an efficient
numeric
>type and you can completly hide internalUUID for inherited classes.

>Whatever is your choice, you still have the ability to override those
>methods to fit special purpose...

How will this work for detached/reattached objects?  A random uuid 
will be generated even though the objects are the same database-wise.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]