It would help to see your deployment descriptors. That is probably where your error is.
James
-----Original Message-----
From: Manoj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Problem with Return type of Abstarct get/set methods in CMP Entity Beans
Hi,
I have created a 'Account' Entity bean having a Primary Key class 'AccountPK' which has a AccountNumber field. My bean class has abstarct set/get methods for AccountNumber also. Signatures of these methods is as under
public abstract int getAccNumber();
public abstract void setAccNumber(int accnumber);
When i tried deploying the Bean in weblgic 7.0, i got the exception saying that the return type of the abstarct methods getAccountNumber should be of primary key AccountPK and not the int. However, all the examples which i could find in tutorials and Books says that the return type should be the data type of the field which in this case is int.
Thanks in advance!
Manoj Kumar.
===========================================================================
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".
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from all computers.
