openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christiaan <christiaan...@hotmail.com>
Subject Re: hashCode/equals for entities
Date Mon, 22 Oct 2007 16:08:28 GMT

Hi,
be carefull wit putting datastore ids in the hashCode(), since the id may
not be present when the object is created (it has to be made persistent and
flushed to the datastore). This may cause problems when you put objects in a
hashmap and later on make them persistent.

kind regards,
Christiaan
-- 
View this message in context: http://www.nabble.com/hashCode-equals-for-entities-tf4665102.html#a13344579
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message