Link Tables dialog box

This is a feature of JBuilder Professional and Enterprise.

Use this dialog box to specify the relationship between the entity beans generated from two tables. The entity beans are linked to each other with references in the bean code.

Table One

Select one of the tables you wish to link together with another. Your choices are the tables you selected to map to entity beans in the previous step.

Table Two

Select the second table you wish to link together. Your choices are the tables you selected to map to entity beans in the previous step.

Specify Relationship Between Two Tables

The first column of the grid is titled with the name of the two you specified as the Table One. In that column, click the first row to display the down-arrow that gives you access to the list of column names in the table. Select the column name you want to use to link the table with the second table.

The second column of the grid is titled with the name of the table you specified as Table Two. In that column, click the first row to display the down-arrow that gives you access to the list of column names in the second table. Select the name of the column that contains data within the same domain as the column name you specified for the first table.

The two columns you specify to create the relationship may have the same name, but that is not a requirement. The names of the columns can differ, but they must have the same domain.

Relationship Directionality

This option specifies the direction of the relationship between the two tables.

Bidirectional

Each entity bean generated from the table specified as table one references an entity bean generated from table two. Each entity bean generated from the table specified as table two references an entity bean generated from table one.

Table One References Table Two

Each entity bean generated from the table specified as table one will include a reference to an entity bean generated from table two. Each entity bean generated from the table specified as table two won't have a reference to the entity beans generated freom table one.

Table Two References Table One

Each entity bean generated from the table specified as table two will include a reference to am entity bean generated from table one. Each entity bean generated from the table specified as table one won't have a reference to the entity beans generated freom table two.