Why We Use Entities

What is an Entity?

  • It is the unique identity and mutability characteristics that differentiate Entities from Value Objects.

  • Design a domain concept as an Entity when we care about its individuality when distinguishing it from all other objects in a system.

  • An Entity is capable of being changed continuously over a long period of time.

  • Entities are often overused. Often a concept should be modeled as a Value.

Be wary of CRUD-based systems

  • Businesses regularly put too much effort into developing glorified database table editors.

  • If we apply CRUD to the wrong systems - complex systems that deserve DDD - we may regret it.

  • When complexity grows, we experience the limitation of poor tool selection.

Last updated