beautypg.com

Choosing an entity, Choosing an entity 74 – Apple WebObjects 3.5 User Manual

Page 74

background image

Chapter 3

Creating a WebObjects Database Application

74

2. Choose Cascade.

This option specifies what to do when the source object (the Movie) is
deleted. The cascade delete rule specifies that when a source object
is deleted, the source’s destination objects should also be deleted—again,
deleted in memory and correspondingly in the database.

3. Click Next.

Now the wizard asks you about Talent’s relationship to MovieRole.

4. Check the “Talent owns its MovieRole objects” box.

5. Choose Deny.

The deny delete rule specifies that if the relationship source (a Talent) has
any destination objects (MovieRoles), then the source object can’t be
deleted.

6. Click Next.

You’re done with the model configuration part of the wizard. The rest of the
wizard pages are to help you configure your application’s user interface.

Choosing an Entity

In this page, the wizard asks you to choose the entity around which the
Main component will be centered. Your Main component centers around
the Movie entity.

1. Select the Movie entity.

2. Click Next.