Thread:
 I use UUIDs as object identifiers 
 gschadow   14 Oct 2005, 00:12 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: gschadow (14 Oct 2005, 00:12) Replies: 0, Views: 30340
Subject: I use UUIDs as object identifiers
When using a UUID as the object identifier, you can generate the IDs
right away and don't neet the Hibernate session to create the id for
you. If you're worried about size, it's a 128 bit binary, that's 16 bytes.

I am wondering why this article makes such a big deal of not using the
object identifier for the equals and hash code, if it is so easy with a
UUID???
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]