Skip Headers
Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2)
Part No. B15900-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 a New Project

  1. Create a new project for the Advanced Tutorial as "Creating a New Project" describes.

    • For the database name, use ADVANCED_TUTORIAL_DB.

    • For the project name, use Advanced Tutorial.

  2. Set the project's classpath to include the examples.session.threetier.model package. See "Setting the Project's Classpath".

  3. Enable the following classes in the examples.session.threetier.model package, and generate a TopLink descriptor for each Java class as "Generating the Class Definitions" describes:

    • Address

    • Employee

    • EmploymentPeriod

    • LargeProject

    • PhoneNumber

    • BaseProject

    • SmallProject

    Table B–14 shows how the classes relate to the database tables.

  4. Log into the database as "Logging Into the Database" describes to create or import the database information.

    Select one of the following methods to add database information:

    Refer to Table B–6 through Table B–13 for complete database information.

Mapping Classes to Tables

Map each Java class in the Advanced tutorial to a database table as "Mapping Classes to Tables" describes.

Map this class... To this database table...
Address ADDRESS
Employee EMPLOYEE
LargeProject LPROJECT
PhoneNumber PHONENUMBER
BaseProject PROJECT

Ensure that the primary keys are correctly indicated, as Table B–6 through Table B–13 specify.


Note:

A warning message appears indicating that you have not yet mapped the attributes. This is addressed later in the tutorial.