Package org.fuin.ddd4j.ddd
Interface Entity<ID extends EntityId>
-
- Type Parameters:
ID- Entity ID type.
- All Known Subinterfaces:
AggregateRoot<ID>
- All Known Implementing Classes:
AbstractAggregateRoot,AbstractEntity
public interface Entity<ID extends EntityId>An object that is not defined by its attributes, but rather by a thread of continuity and its identity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDgetId()Returns the unique entity identifier.EntityTypegetType()Returns the unique type.
-
-
-
Method Detail
-
getType
EntityType getType()
Returns the unique type.- Returns:
- Type of the entity that is unique in the context.
-
getId
ID getId()
Returns the unique entity identifier.- Returns:
- Identifier.
-
-