Mapping Existing Entity Beans to Existing Tables

There are three usecases for mapping entity beans to tables:

This topic deals with the last case; It is assumed that you have existing entity beans and existing database tables. To map entity beans to database tables you use the CMP Field Mappings editor.

To map entity beans to tables:

  1. If you have not already done so, establish a connection to the database schema(s) you want to use.
  2. In the Navigator, right-click on an entity bean and choose Edit CMP Mappings.
    The CMP Field Mappings editor opens.
  3. Use the CMP Field Mappings editor to map entity bean fields to database columns. For additional help in the editor, click Help in the dialog or press F1.

Related topics

Creating a Diagram of Enterprise JavaBeans
Developing Enterprise JavaBeans
What are Enterprise JavaBeans?

 

 

 

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