
10. Set Auto Increment to yes.
11. Click the CMP - Relationships tab.
12. Configure the relationships.
“Table 4-1” lists the relationship information for the customer module.
Table 3-1 Relationship information for the Customer module
Column nameRole nameRelationship name
account_fk
AccountEJBCustomerEJB-AccountEJB Relationship
address_fk
AddressEJBContactInfoEJB-AddressEJB Relationship
profile_fk
ProfileEJBCustomerEJB-ProfileEJB Relationship
contactInfo_fk
ContactInfoEJBAccountEJB-ContactInfoEJB Relationship
creditCard_fk
CreditCardEJBAccountEJB-CreditCardEJB Relationship
Perform the following steps to configure each relationship listed in “Table 4-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.
Configure the Pet Store Enterprise Application 27
2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
CHAPTER 3
Configuring and Deploying Sun’s Pet Store
Komentarze do niniejszej Instrukcji