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: fwolff (03 Aug 2006, 07:18) Replies: 0, Views: 27111
Subject: Re: Use UUID as primary key or opaque field
>How will this work for detached/reattached objects?  A random uuid
>will be generated even though the objects are the same database-wise.

The generated uuid is either saved in the database for new objects or
immediately overrided by its (previously saved) database value for
loaded objects. A detached object keeps its saved uuid (except if you
modify it explicitly) when reattached...
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]