Creating Object Type Mappings
Use this procedure to create an object type mapping between an attribute and a database column.
To create a basic object type mapping:
- In the Application Navigator, select the attribute to be mapped.
- Click the Object-Type Mapping button
on the mapping toolbar. The Object type mapping tab appears in the Editor pane.
- Choose the appropriate database field in the Database Field drop-down list.
- Select Use Default Value When Database Field is Null to specify a default Type and Value to use if the database field is null.
- Set the database type from the Database Type drop-down list and the Java type from the Object type drop-down list.
- Click on Add to add Database Value and Object Value pairs to the table. Select the Default Attribute Value option for the value to use as the default.
- To remove a database value, select the value and click Remove.
You can also specify:
Copyright © 1997, 2004, Oracle.
All rights reserved.