db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg von Frantzius <joerg.von.frantz...@artnology.com>
Subject Query objects and hashCode() + equals()
Date Fri, 16 Oct 2009 16:50:56 GMT

it would be nice if the spec would mandate that implementations of
javax.jdo.Query do correctly implement hashCode() and equals().
Alternatively, Query.toString() could be required to return the
single-string representation of the query, or some dedicated method was
added to provide it.

This would make it easier to e.g. implement some custom cache for query
results, or, more generally, it would make it easier to put Query
objects as keys into Maps.


artnology GmbH - Milastraße 4 - 10437 Berlin - Germany
Geschäftsführer: Ekkehard Blome (CEO), Felix Kuschnick (CCO)
Registergericht: Amtsgericht Berlin Charlottenburg HRB 76376 
UST-Id. DE 217652550

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message