Consider the following table pairs representing the populations of
the classes A
and B
where the columns
A::id
and B::id
are primary keys and
A::b_id
and B::a_id
are foreign keys
referencing B
, respectively A
.
In which of the following cases does the property pair
A::b_id
and B::a_id
implement a bidirectional
association? Select one or more:
☐
A | B | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
☐
A | B | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
☐
A | B | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
☐
A | B | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Representing a bidirectional association with a pair of mutually inverse reference properties implies (select one or many):
☐ information redundancy
☐ slower read access
☐ data storage overhead
☐ update overhead
☐ faster updates
☐ more efficient data storage requiring less memory
☐ efficient object access in both directions
Consider the following information design model with a bidirectional association between the classes Aa and Bb.
Which of the following OO class models are correct representations of this model? Select one or more:
☐
☐
☐
☐
A bidirectional association Committee-isChairedBy-ClubMember between the classes
Committee
and ClubMember
corresponds to ...
(select one or more):
☐ A pair of reference properties Committee::chair
and ClubMember::chairedCommittee
such that
Committee::chair
is the inverse of
ClubMember::chairedCommittee
and
ClubMember::chairedCommittee
is the inverse of
Committee::chair
.
☐ A pair of reference properties Committee::chair
and ClubMember::chairedCommittee
.
☐ A pair of reference properties Committee::chair
and ClubMember::chairedCommittee
such that
Committee::chair
is the inverse of
ClubMember::chairedCommittee
.
☐ A pair of reference properties Committee::chair
and ClubMember::chairedCommittee
such that
ClubMember::chairedCommittee
is the inverse of
Committee::chair
.