see these excellent (but typo-rich) articles by Mark Davis in Java
Report:
Java Report 5(1), 46
Java Report 5(4), 60
They contain all you ever wanted to know about equals(), hashCode() and
clone() - not within the context of EJBs but this is irrelevant.
cheers,
gerald
"������" wrote:
>
> hi,
> I'm trying to implement CMP entity bean with multi-fields Primarky Key class. That
>is,
> In PK class , there are 5 primary key fields. It seems like different from that of
>single-field PK class becasue I have to override hashcode() method with these fields
>which is required to return unique int value.
> I want to see a 'well-done' example
>
> Any comment will be very helpful.
>
> have a nice day!!
>
> ==================================================
> �츮 ���ͳ�, Daum
> ��� ���� ���� E-mail �ּ� �Ѹ��ϳ�
> ������ �ѱ� �˻����� Daum FIREBALL
> http://www.daum.net
>
> ===========================================================================
> 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".
--
[EMAIL PROTECTED] _________________ Software Architect
http://www.imp.univie.ac.at ____ http://www.daemonstration.com
OOA&D, Java, J2EE, JSP, Servlets, JavaBeans, ODBMS, RDBMS, XML
===========================================================================
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".