Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Finessing the Model

It is imperative that even at this stage, the model is slick enough so that it allows us to do what we want.

It is useless being half way through a project and discovering that we have to adjust the model to perform a task such as object deletion.

Setting the Delete Rules

In the last testing exercise, we discovered that we are not allowed to delete a Forum, otherwise it would leave Topics orphaned. But in an Online Forum, a moderator would want to have the ability to delete Forums.

The way to do this is by setting a Delete Rule on the Forum.topics relationship. Select the relationship in EOModeler and open the Advanced Entity Inspector.

Then select Cascade as the Delete Rule, as in Figure 8.10.

Figure 8.10. Setting the Delete ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book