Mapping Existing Entity Beans to Existing Tables
There are three usecases for mapping entity beans to tables:
-
Reverse engineering entity beans from database tables
-
Forward generating database tables from entity beans
-
Mapping existing entity beans to existing 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:
-
If you have not already done so, establish a connection to the
database schema(s) you want to use.
-
In the Navigator, right-click on an entity bean and choose
Edit CMP Mappings.
The CMP Field Mappings editor opens.
-
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.