No, I dont think its allowed to have a cmr as part of the PrimaryKey Class
in EJB2.0.
Previously it would have been a serialized object getting stored in the
binary format and so you never faced any problems but now you cannot
serialize a Bean(component or Local) and store it in the table to call it a
part of your PrimaryKey.
Hope this help.
Regards,
kris
-----Original Message-----
From: Downey, Tim [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 12:30 AM
To: [EMAIL PROTECTED]
Subject: Is FK in PK possible in EJB 2.0 CMP/CMR?
Hi,
I'm wondering if something I've been doing under EJB 1.1 CMP is still
possible/allowed under EJB 2.0 CMP/CMR.
I have two entity beans, a PoHeader and PoLineItem. PoLineItem has a
many-to-one relationship with a PoHeader. PoHeader has a poId and
poCreationDate for its primary key. I would like PoLineItem to have a
lineItemId and a PoHeader for its primary key.
This used to work for me under CMP 1.1 on BAS 4.5.1. I can't seem to get
things working correctly using CMP 2.0 with CMR though. It used to be that
in the CMP 1.1 section of the deployment descriptor I would map the
PoHeader member of the PoLineItem back to the PoHeader EJB using its jndi
name.
My first question is: Is this even allowed by spec?
and second: If so, how do I do it?
Thanks
-tim
===========================================================================
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".