Create Attributes from a Table
An alternative method for creating attributes for a user class is to create them from a database table.
To create a set of attributes that correspond to the columns of a database table
1. Create a new user class or open an existing one (for example, My_User_Class).
2. Click the Attributes tab in the Class Editor.
3. Click Edit, Insert, From Database Table.
The Select a Database Table dialog appears.
4. Specify the table or view name in one of the following ways:
• Enter the name of a table or view in the database that the application accesses.
• Click the control button to the right of the entry field, and select a table from the Table Selection dialog that appears.
Click OK.
The name of the table you selected is displayed in the entry field.
5. Click OK.
Workbench displays the column names and data types on the Attributes tab in the Class Editor.
You can edit or delete any of the attributes and create additional attributes of your own.