Aggregate Root references other aggregate roots

后端 未结 3 1313
感情败类
感情败类 2020-11-30 21:10

I\'m currently working a lot with DDD, and I\'m facing a problem when loading/operating on aggregate roots from other aggregate roots.

For each aggregate root in my

3条回答
  •  情书的邮戳
    2020-11-30 21:28

    Perhaps the AggregateRoot1 repository could call AggregateRoot2 repository when it's constructing the the AggregateRoot1 entity.

    I don't think this invalidates ffffd since the repositories are still in charge of getting/creating their own entities.

提交回复
热议问题