On 7 Mar 2002, at 14:00, Downey, Tim wrote: > 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?
Hi Tim, Database mappings are outside the jurisdiction of the EJB 2.0 specification. There is nothing specifically allowing or prohibiting this. Your vendor may or may not support this or any other mapping to a relational database. > and second: If so, how do I do it? For a vendor-specific example of how this can be done, see the MVCSoft documentation at www.mvcsoft.com. (The documentation can be downloaded in pdf format.) -Daniel O'Connor =========================================================================== 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".
