Go to the Wiki Overview

  • In terms of databases access, this is an object that’s persisted.
  • In terms Domain-Driven Design, an Entity is something with identity over time: Entities are “not fundamentally defined by their attributes, but rather by a thread of continuity and identity.” (Evans 2006, p86)
    • This is quite similar to philosophical notions of an ‘entity’.
    • This expresses a similar feature to “database entities” on an abstract level.
    • In contrast to Value Objects, two Entities with the same attributes are still different, while Value Objects with the same attributes are equal. (As a metaphor in code, you can think of Entities as reference types.)