-----Original Message-----One more factor which i noticed after changing the return type 'int' to the primary key class 'AccontPK' is that i could deploy my CMP bean however while calling the create method on the bean i was getting data type inconsistency. My underlying table was having the following structure
From: Manoj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:30 AM
To: Hicks, James
Cc: [EMAIL PROTECTED]
Subject: Re: Problem with Return type of Abstarct get/set methods in CMP Entity BeansSQL> desc account
Name Null? Type
------------------------------- -------- ----
ACCNUMBER NUMBER(7)
OWNERNAME VARCHAR2(30)
BALANCE NUMBER(7)When i changed the structure of my table to
SQL> desc account
Name Null? Type
------------------------------- -------- ----
ACCNUMBER RAW(1000)
OWNERNAME VARCHAR2(30)
BALANCE NUMBER(7)then i could run my bean successfully........
I could not get what was wrong with my earlier table definition. After creating the record when i checked the record in table 'account' , accountnumber column was having the following value.
AccountNumber Column ACED000573720028706572736F6E616C2E656A622E6C6561726E696E672E636D706265616E2E4669727374434D50504BB6AD9841A6518F7B0200014900096163634E756D626572787000000066
It seems that i made some mistake in the deployment descriptor...
Any suggestions in this regard are welcome !!!!!!!!
Thanks
Manoj
"Hicks, James" wrote:
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 BeansHi,
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 underpublic 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.
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.
