Hi, On Jan 21, 2010, at 7:23 PM, Russell Collins wrote:
While the initial thought is that the "equals()" method would work, the specification for Set requires a compareTo method be present by implementing the Comparable interface.
This is not my understanding. Set requires only hashCode and equals. Ordered collections (e.g. TreeSet) require the elements to implement Comparable or to have a Comparator specified at creation.
Maybe we're reading different parts of the spec... Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:[email protected] P.S. A good JDO? O, Gasp!
