Interface DomainEntity<T,ID extends Serializable>

Type Parameters:
T - the type of entity
ID - the type of object used to identify the entity
All Superinterfaces:
DomainObject<T>

public interface DomainEntity<T,ID extends Serializable> extends DomainObject<T>
A domain-driven design entity, i.e., an object that is not defined by its attributes, but rather by a thread of continuity and its identity.
Author:
RealLifeDeveloper
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Gives the identity of this entity.
  • Method Details

    • id

      ID id()
      Gives the identity of this entity.
      Returns:
      the identity