Adding relationships to your model, Adding relationships to your model 99 – Apple WebObjects 3.5 User Manual

Page 99

Advertising
background image

Refining Your Model

99

4. In the MovieRole entity, remove

movieId

and

talentId

as class properties.

5. In the Talent entity, remove

talentId

as a class property.

Adding Relationships to Your Model

The Movies application uses two pairs of inverse relationships. The first
pair defines the relationship between the Movie and MovieRole entities,
while the second pair defines the relationship between the MovieRole and
Talent entities. An Enterprise Objects Framework relationship is directed;
that is, a relationship has a source and a destination. Generally models
define a relationship for each direction.

1. Select the Movie entity.

The right frame of the Model Editor shows the Movie’s relationships
as well as its attributes.

Your model’s Movie entity might have a different name than the

movieRoles

relationship shown above. That’s because the wizard created

Click an entity
in this frame to
select the
entity.

Click in an
attribute’s Class
Property column
to remove it as a
class property.

The selected entity’s
relationships are
displayed here.

Advertising