but i really don't understand the exact use of equals() and hashcode() methods why 
it's so neccessary
can u tell me
secondly if our primary key is String type then also we 've to write toString() method 
or not

Neelu Mehta

-----Original Message-----
From:   Rickard Oberg [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, August 21, 2000 4:34 PM
To:     [EMAIL PROTECTED]
Subject:        Re: Primary key

On Mon, 21 Aug 2000 12:47:23 +0200, Jon Finanger
<[EMAIL PROTECTED]> wrote:

>Is it neccesary to compute the hashCode() in BMP?

Yes. Primary key classes must always implement both hashCode and equals..

/Rickard

--
Rickard Oberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.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".

Reply via email to