I found a similar question posting at
http://www.geocrawler.com/mail/msg.php3?msg_id=6767380&list=196

But nobody replied.


-----Original Message-----
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: An CMR related exception


Hi! I am using Weblogic 6.1 SP2 and EJB 2.0. I built a CMR between two
Entity Beans. However, I got the following exception while running:

"javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are
mapped to the same column, the setXXX method for the cmp-field may not be
called. The cmp-field is read-only."

However, in the ejbCreate() method in CMP in EJB 2.0, I have to use setXXX
method to initialize the XXX cmp-field. Am I wrong?

Can any guru help? thanks!

===========================================================================
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