What Belongs to the Aggregate Root

前端 未结 7 1401
温柔的废话
温柔的废话 2021-01-30 05:43

This is a practical Domain Driven Design question:

Conceptually, I think I get Aggregate roots until I go to define one.

I have an Employee entity, which has sur

7条回答
  •  迷失自我
    2021-01-30 05:53

    I was wondering what the conclusion would be?

    'Violations' become a root entity. And 'violations' would be referenced by 'employee' root entity. ie violations repository <-> employee repository

    But you are consfused about making violations a root entity becuase it has no behavior.

    But is 'behaviour' a criteria to qualify as a root entity? I dont think so.

提交回复
热议问题