users@jaxb.java.net

Re: equals() and hashCode()

From: Damon Maria <damon_at_mahuika.co.nz>
Date: Tue, 18 Nov 2003 12:05:09 +1300

>>*eg. if I understand correctly then unmarshalling couldn't produce an
>>object graph with cycles?
>
> Actually it can, if you think about ID/IDREF.

Couldn't you just use the ID to compare in this case, rather than the object the
IDREF refers to? It would still be correct equality wouldn't it and would stop
cyclic graphs.

Damon.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net