beautypg.com

Choosing the tables to include, Specifying primary keys, Choosing the tables to include 71 – Apple WebObjects 3.5 User Manual

Page 71: Specifying primary keys 71

background image

Designing the Main Page

71

Choosing the Tables to Include

1. In the wizard panel, select MOVIE, MOVIE_ROLE, and TALENT in

the Tables browser.

The wizard creates entities only for the tables you select. Since
the Movies application doesn’t interact with any of the other
tables (DIRECTOR, PLOT_SUMMARY, STUDIO, and
TALENT_PHOTO), you don’t need to include them in the model.

2. Click Next.

Specifying Primary Keys

If you are using a database that stores primary key information in its
database server’s schema information, the wizard skips this step. The
wizard has already successfully read primary key information from the
schema information and assigned primary keys to your model.

However, if primary key information isn’t specified in your database server’s
schema information (as with Microsoft Access), the wizard now asks you to
specify a primary key for each entity.

Shift-click to select
more than one table.

Click to select all the tables.

Click to deselect all
the tables.