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 |
N/A |
Default based on column name; you can change it to any Java identifier name. |
|
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. |
|
N/A |
N/A |
|
Select this checkbox if the attribute is the Entity Bean's Primary key. |
From the table; it must match the table. |
|
Do not select this checkbox. |
Do not select this checkbox. |
|
Do not modify this checkbox. |
Do not modify this checkbox. |
|
N/A |
N/A |
|
N/A |
N/A except when the java.sql.type for this attribute is CHAR, then all Refresh After checkboxes are selected. |
|
Becomes the table's column name. |
From the table; it must match the table. |
|
Becomes the table's column data type. See About Suggested Type Mappings for CMP. |
From the table; it must match the table. |
|
N/A |
N/A |
|
If selected, the column has a unique constraint. |
From the table; it must match the table. |
|
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.