beautypg.com

Configure the account enterprise bean, Configure the address enterprise bean, Configure the contactinfo enterprise bean – Apple Mac OS X Server v10.3 User Manual

Page 28

background image

f.

Click Update to finish configuring the relationship role.

g. Click Update to finish configuring the relationship.

13. Click Update to finish configuring the Customer module settings, and close the window.

Configure the Account Enterprise Bean

1.

Under CustomerJAR (EJB), click Enterprise Beans. Then click AccountEJB.

2.

From the Table Name pop-up menu in the AccountEJB window, choose

PS_Account

.

3.

Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.

4.

Click the CMP - Mapping tab. From the Entity Command Name pop-up menu, choose

mysql-get-generated-keys

.

5.

Click Update to finish configuring the Account enterprise bean, and close the window.

Configure the Address Enterprise Bean

1.

Under Enterprise Beans under CustomerJAR (EJB), click AddressEJB.

2.

From the Table Name pop-up menu in the AddressEJB window, choose

PS_Address

.

3.

Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.

4.

Click the CMP - Mapping tab. From the Entity Command Name pop-up menu, choose

mysql-get-generated-keys

.

5.

Click Update to finish configuring the Address enterprise bean, and close the window.

Configure the ContactInfo Enterprise Bean

1.

Under Enterprise Beans under CustomerJAR (EJB), click ContactInfoEJB.

2.

From the Table Name pop-up menu in the ContactInfoEJB window, choose

PS_ContactInfo

.

3.

Map the CMP fields to the appropriate column names by selecting the field in the Cmp Fields
list, clicking Edit, choosing the corresponding column name from the Column Name list, and
clicking Update.

4.

Click the CMP - Mapping tab. From the Entity Command Name pop-up menu, choose

mysql-get-generated-keys

.

5.

Click Update to finish configuring the ContactInfo enterprise bean, and close the window.

28

Configure the Pet Store Enterprise Application

2005-08-11 | © 2003, 2005 Apple Computer, Inc. All Rights Reserved.

C H A P T E R 3

Configuring and Deploying Sun’s Pet Store