openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Are relation sets identity, pk or bean.equals() based?
Date Wed, 13 Dec 2006 06:11:46 GMT
Hi Dain,

On Dec 12, 2006, at 7:55 PM, Dain Sundstrom wrote:

> If I have a one-to-many set, what is used to determine object  
> equality in the set: object identity, pk or bean.equals(other)?

You are probably better off using database identity for equality. If  
all the elements are of the same persistent base class, you can  
probably use the id of the object as the key for comparisons.

Craig
>
> -dain

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message