Thread:
 Most Tables can only use Identity Property for equ... 
 Goonie   14 Feb 2004, 14:21 
 Re: Most Tables can only use Identity Property ... 
 tibi   09 Feb 2005, 07:38 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: tibi (09 Feb 2005, 07:38) Replies: 0, Views: 36879
Subject: Re: Most Tables can only use Identity Property for equa...
>Unless I do misunderstand the matter, I have only two choices for about
>99% of my persistant classes:


i must agree most of my objects have only flieds which can be changed or
are not unique.

example a user has a login (email address) and a password both fields
should be changable. do i need to ask the user to give a extra unique
string so i can keep my objects apart?


would it be an idea to add my own id on object creation time.
this way i have a unique key which never is empty and don't need to
change. only problem is when objects get created in different vm's.
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]