Skip Headers
Oracle® Application Development Framework Developer's Guide
10g Release 3 (10.1.3)
B25386-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
 

19.5 Using Multiple Maps with a TopLink Data Control

You can create multiple TopLink maps for use with each project. Each map can be associated with a specific database and connection, as shown inFigure 19-4.

Figure 19-4 Create Object Relational Map Dialog

This figure shows the Create Object Relational Map dialog

You can create a data control from a TopLink map, similarly to creating a data control from a sessions.xml file (see Section 19.4, "Using sessions.xml with a TopLink Data Control").

Use the TopLink Data Control dialog (as shown in Figure 19-5), select TopLink Map, and then select the specific map.

To create a TopLink data control from a TopLink map:

  1. Right-click the sessions.xml file in the Navigator window and select Create Data Control.

  2. On the TopLink Data Control dialog, select the TopLink Map option.

    Figure 19-5 Creating a TopLink Data Control (from a TopLink Map)

    Description of Figure 19-5  follows
    Description of "Figure 19-5 Creating a TopLink Data Control (from a TopLink Map)"

  3. Select the specific TopLink map.

  4. Select the specific sessions configuration file (or create a new configuration) and session. You can create a data control for any mapped classes.