A
A
Andrey Unger2013-11-20 16:36:36
Hibernate
Andrey Unger, 2013-11-20 16:36:36

Many-to-Many Relationship with Additional Parameter

There are two entities. For example people and tasks. A person can be a task creator, performer, and so on. Accordingly, the task has several fixed people with different statuses. How to implement it in ORM?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Rizhenkov, 2013-11-20
@Cobalt

Таблицы: 
"people"
id:fio
"tasks"
id:title
"исполнители_задачи"
people_id:task_id
"создатели_задачи"
people_id:task_id
Or would you like more details?

C
ckald, 2013-11-20
@ckald

You didn't specify which language and which ORM (but I can tell from the tags that it's Java?).
However, in any case, the answer is the same: an additional model. Two fields with entity ids and a status field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question