|
Implementation
Many BC4J-VSM associations (examples: order items to orders,
order to user) are implemented in the oracle.otnsamples.vsm.entities
package.
The Oracle9i JDeveloper environment comes with comprehensive
tools support for putting the BC4J framework components to use in J2EE applications.
You use interactive wizards, editors, property inspectors, and UML diagrammers
to create, enhance, and deploy your BC4J components. These tools are tightly
integrated within a complete Java IDE that includes debugging, deployment, and
source control support, so you can work from the beginning to the end of your
J2EE application development lifecycle with one tool.
Business component wizards can automatically create associations
based on the database constraints already defined in the database. They can
also create database constraints based on the associations you define.
You can define and edit associations in the Association Wizard
and Editor. You can also generate default associations, based on foreign key
constraints in existing tables (reverse generation), by using the Entity Object
Wizard and Editor, Business Components Project Wizard, or Package Wizard. You
can optionally add foreign-key constraints to tables based on the associations
you've defined in the Association Wizard and Editor (forward generation). If
you add database constraints after generating your business components, you
can automatically create the corresponding associations in the following ways:
Use the Synchronize tool to create associations based on new foreign key constraints.
Click Finish in the Entity Object Editor to create the new associations (the
attributes corresponding to the foreign and primary keys must be included in
the entity objects).
You can define and edit view links in the View Link Wizard
and Editor. You can also generate default view links, based on existing associations,
by using the Entity Object Wizard and Editor, Business Components Project Wizard,
or Package Wizard.
|