Enter the Entity Bean Settings

In the Entity Settings dialog box, specify the settings for your 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 .

If you chose container-managed persistence, you must 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. You perform this task in the Entity tabbed pane after you have created this enterprise bean.

See Also:

Edit the Entity Bean Settings
Enter Database Settings


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