Creating Java Objects from Database Tables

The TopLink Mapping editor can automatically generate Java class definitions, descriptor definitions, and associated mappings from the information in database tables. You can later edit the generated information if necessary.

For each database table, the TopLink Mapping editor:

To Generate Descriptors and Classes from Database Tables:

  1. Right-click the project element in the Navigator and select New. The New Gallery appears.
  2. In the Categories list, select Business Tier | TopLink.

    Figure 3-2 New Gallery

    This figure shows the New dialog box.

  3. In the Items list, select Java Objects from Tables and click OK. The Create Java Objects from Tables Wizard appears.
  4. Complete each screen in the wizard. The newly created Java objects appear in the Navigator list. The TopLink descriptors appear in the Structure window.

JDeveloper also creates offline database tables from the database connection.


Related Topics

About Database Mappings

 

Generating Mapping Data from Database Tables
Working with Database Connections

 

Copyright © 1997, 2004, Oracle. All rights reserved.