N
N
NEGI_RUS2014-01-11 13:26:45
UML
NEGI_RUS, 2014-01-11 13:26:45

How to model order system in UML?

Hello. There was such task: to model system of orders on UML:
6gZ4A.png
But a problem that I at all do not understand how it should look. I know how, for example, to do this task: "Employees work in departments. Each employee can hold one or more positions. Each position has its own salary rate," but I didn’t even find examples for my task. I ask for help, can anyone give a tip on how to draw it up, or give a link to the literature? I will be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2014-01-11
@NEGI_RUS

M2M en.wikipedia.org/wiki/Many-to-many_ (data_model) foreignKey =
one to many

Список_статусов:
    название = (Доставлено, Готовится, ...)

Заказчик:
    имя = текст
    ....

Продукт:
    название = текст
    ....

Заказ:
    заказчик = м2м(Заказчик) // много заказчиков у которых много заказов
    статус = foreignKey(Список_статусов) // один статус у многих заказов
    продукт = foreignKey(Продукт) // один продукт во многих заказах
    количество = Integer

In a good way, it is necessary to give the opportunity to one customer to group goods into an order, but nothing is said about this in the task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question