I don't see the problem.

class MyPKClass... {
  String pk;

  public int hashCode() {
    return pk.hashCode();
  }

.
.
.

> -----Original Message-----
> From: Prince Jacob Alex [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 22, 2000 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: Need help in PK Class
>
>
> Hello,
>
>    I am developing some sample EJB's using EJB ver 1.1 and weblogic as
> the container. According to EJB 1.1 spec we need to override
> the methods
> boolean equals() and int hashcode() in the PK class.
>
>   My doubt is that if my primary key is a String, then how do
> I override
> the method int hashCode(). I can cast the return as string but that
> dosen't make much of sense.
>
> Please let me know if I am missing something.
>
> Thanks
>
> Prince
>
> ==============================================================
> =============
> 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