G
G
glebvvs2020-03-22 15:35:35
Problem-Based Design
glebvvs, 2020-03-22 15:35:35

Can entities have associative links between themselves, or is it necessary to use an aggregate for such a case?

I apologize in advance for my poor knowledge in the field of DDD. If I'm wrong somewhere, please correct me.

There are entities: ORDER, PAYMENT_METHOD

In the ORDER entity there is a reference to the identifier of PAYMENT_METHOD (many-to-one relationship).

Can there be a full-fledged associative relationship between the ORDER and PAYMENT_METHOD objects, that is, in the ORDER entity there will be a method that returns the PAYMENT_METHOD object, or is it necessary to use an aggregate for this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question