openjpa-users mailing list archives

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

Hello,
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
sets.

What am I missing?

Thanks, 
Yoav
-- 
View this message in context: http://n2.nabble.com/ClassCastException-in-pcReplaceField-tp4392185p4432071.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message