Reverse-Engineering an Entity Bean from a Table Definition

Modeled entity beans can be reverse-engineered on a diagram of EJBs from table definitions accessible via an existing database connection in JDeveloper.

To reverse-engineer a table definition to an entity bean:

  1. Open, or create, the diagram on which you want to create an entity bean based on a table definition.

  2. Expand the node in the Connections Navigator for the database connection in which the table definition you want to reverse-engineer to an entity bean is stored.

  3. Expand the user node then the Tables nodes on that connection.

  4. Click the table, the definition of which you want to use to create an entity bean, and drag it to the current diagram.

    Note: To reverse-engineer several tables to entity beans, hold down the Ctrl key, select the tables in the navigator you want to reverse-engineer, drag these tables onto the diagram, then release the Ctrl key.

  5. Select whether you want to reverse-engineer the table definition to an EJB 1.1 Entity Bean or EJB 2.0 Entity Bean then click OK.


Creating a Diagram of Enterprise JavaBeans

 

 

 

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