Package passport.roles
Class EntityId
java.lang.Object
passport.roles.EntityId
- Direct Known Subclasses:
EvaluationId
,EventId
,TransactionId
,UserId
Represents the unique identifier for an entity within the domain. An EntityId
ensures that each entity has a unique identity that distinguishes it from all
other entities, crucial for lookup process in persistence. This class serves
as a base class for all entity identifiers, leveraging UUIDs for uniqueness.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EntityId
public EntityId()Constructs a new EntityId with a randomly generated UUID. -
EntityId
Constructs a new EntityId with the specified UUID.- Parameters:
value
- the UUID value for the entity ID
-
-
Method Details
-
value
-
hashCode
-
equals
-