beautypg.com

Apple WebObjects 3.5 User Manual

Page 73

background image

Designing the Main Page

73

If foreign key definitions aren’t specified in your database server’s schema
information (as with Microsoft Access), the wizard hasn’t created any
relationships at all, and it skips this step. You’ll add relationships to your
model using EOModeler later in this tutorial.

In the first relationship configuration page, the wizard asks you about
Movie’s relationship to MovieRole. The name of the relationship is
dependent on the adaptor you’re using.

1. Check the “Movie owns its MovieRole objects” box.

This option specifies that a MovieRole can’t exist without its Movie.
Consequently, when a MovieRole is removed from its Movie’s vector
of MovieRoles, the MovieRole is deleted—deleted in memory and
deleted in the database.

In this example, the relationship
name is

movieRoleArray

, but

the name is dependent on the
adaptor you’re using.