Base class for domain entities.
Entities are identified by a unique id of type Id and implement equality based on their identifier. Entities are mutable objects that exist for a continuous period.
the type of the entity identifier (must extend EntityId).