草叶睡蜢

导航

4.1 The Example Domain 领域示例代码

4.1 The Example Domain 领域示例代码

The examples will use some concepts those are used by GitHub, like Issue, Repository, Label and User, you are already familiar with. The figure below shows some of the aggregates, aggregate roots, entities, value object and the relations between them:
本例中会用到一些GitHub使用过的概念,如IssueRepositoryLabelUser,你已经很熟悉了。下图展示了一些聚合体、聚合根、实体、值对象以及它们之间的关系。
image
Issue Aggregate consists of an Issue Aggregate Root that contains Comment and IssueLabel collections. Other aggregates are shown as simple since we will focus on the Issue Aggregate:
Issue的聚合体由一个Issue的聚合根组成,它包含CommentIssueLabel集合。由于我们将专注于Issue聚合体,其他聚合体仅简单展示一下。
image

posted on 2021-10-21 15:39  草叶睡蜢  阅读(381)  评论(0编辑  收藏  举报