In the Entity Settings dialog box, specify the settings for your
entity bean.
Choose the type of
management for your entity bean, either
or
, by selecting the
appropriate radio button.
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.
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.
For container-managed persistence and a single-field primary
key, select a variable name from the combo box labelled
"Primary Key Field Name."
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.