U have to override these methods (defined in Object class )in the Primary
Key class so there's no way around it.
Thanks
-----Original Message-----
From: Vipul Garg [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 6:42 PM
To: [EMAIL PROTECTED]
Subject:
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".
===========================================================================
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".