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使用过的概念,如Issue
、Repository
、Label
和User
,你已经很熟悉了。下图展示了一些聚合体、聚合根、实体、值对象以及它们之间的关系。
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
的聚合根组成,它包含Comment
和IssueLabel
集合。由于我们将专注于Issue聚合体,其他聚合体仅简单展示一下。
本文来自博客园,作者:草叶睡蜢,转载请注明原文链接:https://www.cnblogs.com/tjubuntu/p/15433703.html