Edit the Entity Bean Settings

The Entity tabbed pane allows you to edit the settings of an entity bean.
  1. Choose the type of management for your entity bean, either or , by selecting the appropriate radio button.
  2. If you chose container-managed persistence in step 1, check the boxes next to the instance fields for which you need the container to provide data-access calls. These fields must be either primitive types, Serializable objects, or Remote reference types.
  3. In the Primary Key Class field, enter the class of the entity bean's . For example, if the data contained in your primary key field is of type String, enter java.lang.String in the Primary Key Class field.
  4. For container-managed persistence and a single-field primary key, select a variable name from the combo box labelled "Primary key field name."
  5. If you want your entity bean to be select the Reentrant checkbox. If your entity bean does not need callbacks, keep the default setting of .
  6. If you chose container-managed persistence, click Deployment Settings to define the database and table in which the container-managed fields will be persisted and the SQL statements to be used to persist the finder methods.

See Also:

Enter the Entity Bean Settings
Enter Database Settings


Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.