Skip Headers

Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# Configuring Multiple Mapping Projects

Each session is associated with at least one mapping project (see "Configuring a Primary Mapping Project"). You can include additional TopLink mapping projects for a session.

Table 77-8 summarizes which sessions support additional mapping project configuration.

Table 77-8 Session Support for Additional Mapping Project

Session | Using TopLink Workbench | Using Java
--- | --- | ---
Server and Client Sessions |  |
Session Broker and Client Sessions |  |
Database Sessions |  |

## Using TopLink Workbench

To specify additional TopLink projects for your session, use this procedure:

1. Select a server or database session in the Navigator. Its properties appear in the Editor.

2. Click the General tab. The General tab appears.

3. Click the Project subtab. The Project subtab appears.

   Figure 77-4 General Tab, Project subtab, Multiple Projects Options

4. Select Multiple Projects option. The Multiple Projects subtab appears.

5. Click the Multiple Projects subtab.

6. Figure 77-5 General Tab, Project Subtab, Multiple Projects Subtab

To add an additional mapping project to this session, click Add. For more information, see "Configuring a Primary Mapping Project".

To remove TopLink mapping projects, select the project file and click Remove.

## Using Java

Using Java, you can register descriptors from more than one project with a session using the `Session` API that Table 77-9 lists. Descriptors should be registered before login, but independent sets of descriptors can be added after login.

Table 77-9 Session API for Registering Descriptors

Session Method | Description
--- | ---
`addDescriptors(Project)` | Add additional descriptor to the session in the form of a project.
`addDescriptors(Vector)` | Add a vector of individual descriptor files to the session in the form of a project.
`addDescriptor(Descriptor)` | Add individual descriptors to the session.