Chapter 8 Creating J2EE Applications for BEA WebLogic


Defining a mapping for a Relationship

Relationships between Entity Beans are represented in PowerDesigner using associations between Bean classes.

An association mapping defines the navigation between its classes from a database perspective. A Data Source identifies association mappings. An Association Mapping contains a list of source references, tables or views. Usually in case of one-to-one or one-to-many relationships, associations have a reference as source. In case of many-to-many relationships, associations have an associative table as source.

From an association mapping, up to six SQL queries are automatically computed to show how associated class instances can be retrieved from, or modified in the database. These six SQL queries are respectively:

These SQL queries are computed only when their corresponding roles are navigable. Insert and Delete queries for each role are only computed when an associative table is defined as source for the association.

As for class mappings, these queries are not used for WebLogic.

For WebLogic, the following extended attributes are available for associations in order to perform optimizations on relationships between beans:

For more information on groups, see Groups.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.