conectionist
conectionist

Reputation: 2924

Two (or more) aggregation relationships between two entities

Consider the following (abstract) situation:

Two entities. There are two aggregation relationships between the two entities.

The diagram looks like this:

Two aggregation relationships

I know this might sound vague, but is there anything wrong with this picture?

I mean, are there any (obvious) problems that could arise from this kind of design?

Or am I being paranoid and there's absolutely nothing wrong with two (or more) aggregation relationships between two entities?

Upvotes: 0

Views: 1412

Answers (3)

Kenji
Kenji

Reputation: 11

Nothing wrong with the diagram. Here is a more meaningful example. Diagram

-Kenji

Upvotes: 1

PsiX
PsiX

Reputation: 1681

As long as the relationships are fulfilling really different roles (as you indictated by the numbering) I think it is a good approach, as you make them explicit.

Otherwise you could make use of the cardinality:

Cardinality

Upvotes: 0

Red Beard
Red Beard

Reputation: 3506

For me there is nothing wrong in such design. Your Entity2 will have a different role in each context that's all.

Upvotes: 1

Related Questions