Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mutual Relationship

0 views
Skip to first unread message

Sephiroth

unread,
Oct 13, 2008, 2:24:51 PM10/13/08
to
What do you guys think about the following situation:

A Person has a Department and a Department has a boss that is a
Person.

Can I make a mutual relationship like this?

[has a]
Person --------------------> Department

[Boss]
Department --------------> Person

What do you guys recommend?

Best regards

Walt

unread,
Oct 13, 2008, 3:53:11 PM10/13/08
to
Sephiroth wrote:
> What do you guys think about the following situation:
>
> A Person has a Department and a Department has a boss that is a
> Person.
>
> Can I make a mutual relationship like this?
>
> [has a]
> Person --------------------> Department
>
> [Boss]
> Department --------------> Person


Yes, you can. But to really model the real world, you should be
prepared to allow a person to have more than one department, and to
allow a department to have more than one boss.


>
> What do you guys recommend?

Find an example that works in practice and copy it rather than
re-inventing the wheel. When adapting the other model, try to find it's
weaknesses and fix those problems. It's not simple or easy.

//Walt

0 new messages