
9.
In the Column Name text field, enter pk.
10.
Set Auto Increment to yes.
11.
Click the CMP - Relationships tab.
12.
Configure the relationships.
Table 3-1 lists the relationship information for the customer module.
Table 3-1 Relationship information for the Customer module
Column nameRole nameRelationship name
account_fkAccountEJBCustomerEJB-AccountEJB Relationship
address_fkAddressEJBContactInfoEJB-AddressEJB Relationship
profile_fkProfileEJBCustomerEJB-ProfileEJB Relationship
contactInfo_fkContactInfoEJBAccountEJB-ContactInfoEJB Relationship
creditCard_fkCreditCardEJBAccountEJB-CreditCardEJB Relationship
Perform the following steps to configure each relationship listed in Table 3-1.
a.
In the Ejb Relations list, select the relationship to configure, and click Edit.
b.
In the Relationship Roles list, click the corresponding relationship role.
c.
Click New next to the Key Fields list.
d.
In the Field Name text field, enter pk.
e.
From the Column Name pop-up menu, choose the name of the appropriate column, and click Update.
Configuring and Deploying Sun’s Pet Store
Configure the Pet Store Enterprise Application
2005-08-11 | Copyright © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
22
Kommentare zu diesen Handbüchern