# Specifying Attribute Settings for an Entity Bean

The Attribute Settings page appears while you are working through the EJB/8i Deployment Object Wizard.

Use the Attribute Settings page to specify settings for your EJB fields. The settings can affect forward generation or the settings can be derived from an existing table (reverse generation). The following table summarizes what settings affect forward and reverse generation, and which settings apply to persistent and transient attributes.

Attribute Setting | Forward Generation | Reverse Generation
Attribute Name | N/A | Default based on column name; you can change it to any Java identifier name.
Attribute Type | N/A | Default based on column data type. You can choose another type in the list, but see About Suggested Type Mappings for CMP. If the column type is an Oracle object type, an appropriate domain will appear in this list.
Default Value | N/A | N/A
Primary Key | Select this checkbox if the attribute is the Entity Bean's Primary key. | From the table; it must match the table.
Mandatory | Do not select this checkbox. | Do not select this checkbox.
Persistent | Do not modify this checkbox. | Do not modify this checkbox.
Updateable | N/A | N/A
Refresh After | N/A | N/A except when the java.sql.type for this attribute is CHAR, then all Refresh After checkboxes are selected.
Database Column Name | Becomes the table's column name. | From the table; it must match the table.
Column Type | Becomes the table's column data type. See About Suggested Type Mappings for CMP. | From the table; it must match the table.
Queriable | N/A | N/A
Unique | If selected, the column has a unique constraint. | From the table; it must match the table.
Change Indicator | N/A | N/A

In general, if you are performing reverse generation, you don't want to change the primary key, mandatory, database column name, column type, and unique settings that were received from the table. For forward generation, the primary key, mandatory, persistent, database column name, column type, and unique settings are used to generate tables.