Clarification Needed on Class Diagram Relationships for Employee, OrderMission, and Department

I am working on a class diagram for my internship. I have encountered a situation that I haven’t seen before, and I’m not entirely comfortable with the approach I’ve taken. Here are the relationships I need to model:

  1. Employee and OrderMission:

    • An Employee can be responsible for multiple OrderMissions, but each OrderMission can have only one responsible Employee.
    • An Employee can participate in many OrderMissions as an accompanying person, and each OrderMission can have multiple accompanying Employees.
  2. Employee and Department:

    • An Employee is assigned to one Department only, but each Department can have many Employees.
    • An Employee can be the chief of one Department only, and each Department can have only one chief.

I would greatly appreciate any guidance or suggestions on how to properly model these relationships in a class diagram.

this is what i tried.

New contributor

Yassine Riahi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

5

I’ll use Mission instead of MissionOrder or OrderMission.

First of all an employee CAN be responsible or CAN accompany a Mission. This means that not all employees are necessarily linked to a mission (think for example of new employees before they get a role in their first mission). Consequently, on the Mission end, the multiplicities should be 0..* (or shortcut *).

We understand that any Mission requires a responsible, so 1 is ok. But do every missions have accompanying persons ? Moreover, in the lifecycle of a mission, when a new mission is created, are the accompanying persons known from the start? If the answer to either of these questions is no, the multiplicity on the Employee end should be 0..*.

On the employee/department it’s likewise. The 1 on the Department side of work is ok. But it is not clear feom yor narrative if a department must have at least one employee. Assuming that the chief is also working for the department 1..* is ok. If not sure (e.g. a department could be created and the chief os only assigned later) prefer 0..*.

The chef association is not ok: not all employees manage a department. So on the department end, it should be 0..1.

The + on the associations end are for public visibility. If you’d use it, better add the role name, i.e. the name you would give to the property of the class at the opposite end that would refer to the class at the end of the association. In other words, it’s much less ambiguous to write department next to the + on the end of the chief association on the Department class, than having an attribute department:Department.

8

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật