Hi,
make the constructor in primary key class, pass the arguments as much as you
need depend upon your primary key like simple or composite..
and in deployment discriptor leave the PrimaryKey field as blank.

Regds
Sant:)sh.

-----Original Message-----
From: Prince Jacob Alex [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 7:22 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".

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

                Visit us at http://www.cognizant.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".

Reply via email to