Class IdentifiableEntity

java.lang.Object
com.serinity.accesscontrol.model.base.IdentifiableEntity
Direct Known Subclasses:
AuditLog, AuthSession, TimestampedEntity

public abstract class IdentifiableEntity extends Object
Base class for entities that require a unique identifier. Provides a universally unique identifier (UUID) as the primary key for all inheriting entities.

All entities extending this class automatically have a primary key field named id, which is generated using the GenerationType.UUID strategy.

NOTE: This class is annotated with @MappedSuperclass, so it does not correspond to a database table itself but allows its fields to be inherited by child entity classes.

Since:
2026-02-03 IdentifiableEntity.java
Version:
1.0
Author:
@ZouariOmar (zouariomar20@gmail.com)
  • Field Details

    • id

      protected UUID id
  • Constructor Details

    • IdentifiableEntity

      protected IdentifiableEntity()
      Creates a new identifiable entity.
  • Method Details

    • getId

      public UUID getId()
      Returns the unique identifier of this entity.
      Returns:
      entity identifier