Article:
  Don't Let Hibernate Steal Your Identity
Subject:   Object Identity x DB identity
Date:   2006-09-21 05:22:41
From:   zanfolim
I like the idea, but if the UUID uniquely identify the instance (in the equals implementation), if I instantiate two person that should repesent the same one (with the same SSN for example) them equals will tell me they are not equals, isnīt it?
It really seems to me that for 'object identity' we should always use the natural keys, while using surrogate keys for the DB.


Just my 2 cents,


Tedi