|
From: Timo V. <sic...@gm...> - 2003-08-08 13:53:58
|
> I don't thinks there's a problem: As I said, equals() is still id > based, only hashCode() is "created" based. And its no problem that > differerent (according to equals()) instances have the same > hashCode(). It perfectly holds the contract! The database just should > not truncate any bits! Otherwise there will be problems, of course. One more thing: Basically you could base the hashCode on any UNMODIFIEABLE random value, as long as its initialized on object construction. BUT the creation time is a good thing for me, since I store/use it anyway. |