The Entity tabbed pane allows you to edit the settings of an 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, 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.