On Sun, 19 Sep 2004 19:17:25 -0400 (EDT), Frank W. Zammetti (MLists) <[EMAIL PROTECTED]> wrote:
> Erik's answer is what I would call the correct one... I agree as well, but just wanted to point out one additional detail ... if you override the equals() method, you will probably also want to override the hashCode() method as well, because the semantics of the two are linked. Normally this can be done by calculating the hash for the bean itself based on the hashCode() value of all the properties -- the important thing is that if equals() returns true, the hashCode values should be equal. See the javadocs for java.lang.Object for more details. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]