Entities

Pattern: Entities

An Entity represents a uniquely identifiable domain (or business) object that encapsulates attributes and a well-defined domain behavior.

An entity is uniquely identified within a Bounded Context

strategic-patterns

Entity MUST have a behvior as well. An enity without a behavior is referred to as an anemic entity or model.

strategic-patterns

Entity is meaningful in a Bounded Context. The name of the entity may be same across Bounded Context but its meaning and composition may be different.

entity-meaning-across-bc

Entity Behavior

Behavior of the objects refers to the:

  • Business rules
  • Validations
  • Calculations
  • Logic
  • Operations