openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yoavsc <>
Subject RE: ClassCastException in pcReplaceField
Date Thu, 21 Jan 2010 06:56:36 GMT

I'm afraid I misunderstand something.

Russell Collins wrote:
> Therefore the objects that are going into the Set collection need to
> implement the Comparable interface to be inserted.  

Why is that so?
java.util.Set does not require the inserted type to implement Comparable.
Sets are unordered collections.
Checking the equality of two objects (using equals()) should be enough for

What am I missing?

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message