Figure 10-17 Create an Enterprise Bean wizard

Now we need to define all the CMP attributes that we need to include in the entity bean. To do that:

1.Click the Add button, to open the window for CMP attribute creation, as shown in Figure 10-18 on page 241.

2.Enter membership as the attribute name, and choose its type to be long. Select the Key Field option to indicate that membership is key for that entity, then click Apply.

3.After adding the membership, add the rest of the attributes, which are the firstName, lastName, and e-mail. Note that these attributes are of type string, and that you do not need to select the key field option, because these attributes are not keys. The membership attribute is the only key for the customer.

4.Click Finish.

240 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 256
Image 256
IBM Version 5 manual Create an Enterprise Bean wizard