Oracle TopLink Developer's Guide
10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
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.
To manually create a mapping using TopLink Workbench, use this procedure:
Select a descriptor in the Navigator. Its properties appear in the Editor.
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.
In the Navigator, expand the descriptor to display its attributes.
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.