Skip Headers
Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2)
Part No. B15900-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Using the Automap Tool

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:

  1. Choose the Address class in the Navigator pane and click the Descriptor Info tab in the Editor pane.

  2. In the Associated Table drop-down list, choose the ADDRESS table.

    You must associate the class with a table before using the Automap tool.

  3. 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.