This topic covers how JDeveloper maps database tables to entity beans. For information on how database tables map to ADF business components, see About ADF Business Component Attribute Mappings.
Entity beans map to database tables based on a predetermined map. For
each column in the table, an attribute is created on the entity bean. So
if you created a dept bean from DEPARTMENTS, the dept bean would have
one attribute for every column in the database. The mapping mechanism is
not exposed, nor can you change typemaps, but you can modify attributes
and relationships using the Mapping Editor and EJB Editor.
Constraints are not mapped or preserved in either direction.
If foreign keys are detected in the tables, they will be engineered as
CMR relationships. The UNIQUE and NOT NULL constraint determine the
cardinality and composition of the relationship.
Creating a Diagram of
Enterprise JavaBeans
Developing Enterprise JavaBeans
What are Enterprise JavaBeans?
Copyright © 1997, 2004, Oracle. All rights reserved.