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
 

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.

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

    Multiple Projects
  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

    TMultiple Projects

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.