openjpa-users mailing list archives

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

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,
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message