What Belongs to the Aggregate Root

前端 未结 7 1403
温柔的废话
温柔的废话 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 06:10

    It depends. Does any change/add/delete of a vioation change any part of employee - e.g. are you storing violation count, or violation count within past 3 years against employee?

提交回复
热议问题