Tables and foreign keys can be modeled on a database diagram in JDeveloper.
A modeled table contains information about the offline table definition, and the columns and constraints for that table.
The name compartment contains the <<table>>
stereotype, followed by the offline schema name and the name of the
modeled table.
The columns compartment contains the column name, datatype, size and precision.
The constraints compartment contains the name and type of the constraint.
This diagram shows some foreign keys. Optional foreign keys are shown
with 0..1
at one end, and mandatory foreign keys are shown
with 1
.
The diamond shape at the end of the foreign key shows whether an
On Delete
rule has been set and what it has been set to. If the
diamond is black then CASCADE
has been chosen. If it is
white then SET NULL
has been chosen. If there is no diamond
then the On Delete
rule has not been set.
To draw a key, start with the owning table.
About Database Modeling
About Offline Schemas
Modeling Offline
Database Definitions
Working with
Offline Database Definitions
Modeler's Guide
Copyright © 1997, 2004, Oracle. All rights reserved.