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:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to