hi Vipul.
Everyone in this list have been complaining about vendor specific questions.
You can post weblogic related questions at newsgroups.bea.com
You will get a fast response.
Also please give a subject when you are posting a message.It wont take any
time.
BTW the answer to your question is in your post itself.
>[9.2.9] In EJB Order, the primary key class must implement the method
>public
>int hashCode().
>[9.2.9] In EJB Order, the primary key class must implement the method
>boolean equals(Object other).
Implement these methods in your primary class.
thanks
sam
********************
>From: Vipul Garg <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: Fri, 23 Feb 2001 18:42:01 +0530
>
>Hi,
>I am using weblogic5.1and oracle 8 database.
>I have written Container Managed Persistence Bean that is connected to
>table
>Orders which has three fields and a primary key custid for which I have
>made
>a Primary Key class.I have defined these three methods in Home interface.
> public Order create(int custid, String itemcode, int quantity)
>throws RemoteException, CreateException;
> public Order findByPrimaryKey(OrderPK pk) throws RemoteException,
>FinderException;
> public java.util.Enumeration findByCustID(int custid) throws
>RemoteException, FinderException;
>The following error is coming while deploying it on weblogic.
>
>[9.2.9] In EJB Order, the primary key class must implement the method
>public
>int hashCode().
>[9.2.9] In EJB Order, the primary key class must implement the method
>boolean equals(Object other).
>
>Could you help me in overcoming this error.
>Thanx,
>vipul
>
>===========================================================================
>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".
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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".