Difficulty: Easy
Correct Answer: Both directions.
Explanation:
Introduction / Context:
ODL supports relationships between classes and allows explicit declaration of inverse roles. Declaring both ends ensures that updates on one side are reflected on the other, enabling reliable navigation and consistency.
Given Data / Assumptions:
Concept / Approach:
The recommended pattern is to declare the relationship on both classes with inverse clauses, e.g., relationship Set
Step-by-Step Solution:
Verification / Alternative check:
Inspect ODL examples; proper bidirectional modeling consistently uses “both directions” with inverse mapping.
Why Other Options Are Wrong:
One direction only: risks inconsistent navigation and stale links.
Neither: provides no navigable association.
Common Pitfalls:
Defining two unrelated one-way relationships without inverse; leads to duplication and drift.
Final Answer:
Both directions.
Discussion & Comments