I'm not sure where to start: these are both reserved methods, equals is
one of three equality operators in Java, you should override the methods
to be sure they behave properly, how you override them depends on what
you're doing, ...
Scott Durrant
Human Genetics
University of Utah
[EMAIL PROTECTED]
On Tue, 20 Jun 2000, Joe Zhou wrote:
> Can someone tell me why the primary key class must
> implement hashCode() and equals() method?
>
> How should I implement them?
>
> Thanks.
>
> Joe Zhou
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".