Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2) Part No. B15900-01 |
|
Previous |
Next |
TopLink can automatically map class attributes to similarly named database tables. This Automap function creates mappings only for unmapped attributes—it does not change previously defined mappings.
You can automap classes for an entire project or for specific tables.
Note: Although Automap correctly maps most one-to-one and direct-to-field mappings, examine each mapping for valid and correct information. You may need to add or change some mappings. |
To Automap the Address descriptor:
Choose the Address
class in the Navigator pane and click the Descriptor Info tab in the Editor pane.
In the Associated Table drop-down list, choose the ADDRESS table.
You must associate the class with a table before using the Automap tool.
Right-click the Address
class in the Navigator pane and choose Automap from the pop-up menu.
You can also automap descriptors by choosing Selected > Automap from the menu.
The system automatically maps each attribute to the appropriate database table. Do not Automap any other classes. You will manually map these classes later in this tutorial.