Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-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
 

Creating Mappings Manually During Development

You can manually create a mapping from each persistent field of a class to a data source using TopLink Workbench or Java code. Oracle recommends that you use TopLink Workbench.

Using TopLink Workbench

To manually create a mapping using TopLink Workbench, use this procedure:

  1. Select a descriptor in the Navigator. Its properties appear in the Editor.

  2. On the Descriptor Info tab, associate the descriptor with the data source (see Chapter 28, "Configuring a Descriptor"). You must associate descriptors with a database table or schema context before mapping their attributes.

  3. In the Navigator, expand the descriptor to display its attributes.

  4. Select an attribute and click the appropriate mapping on the toolbar (see "Context Toolbar"), or right-click the attribute and select Map As > specific mapping from the menu (see "Context Menus").

Continue with Chapter 35, "Configuring a Mapping" to complete the mapping.