Explanation

This rule checks whether all entities that are used in an aggregate's metadata are also contained in the aggregate definition. Violation of this rule could cause problems when you use the aggregates in a different context, since metadata could be missing in the profile.

We estimate that resolving this issue will on average take 5 minutes.

Possible improvement

Include the entities in the aggregate

Example

The image below shows a situation in which an aggregate does not include the entity Person in its own definition.


It results in this code smell: