Interface Identifiable<I extends Comparable<I> & Serializable>

Type Parameters:
I - The generic ID type, usually Long.
All Known Implementing Classes:
BaseEntity, GeneratedIdEntity, TimestampedBaseEntity, TimestampedEntity, VersionedBaseEntity, VersionedEntity

public interface Identifiable<I extends Comparable<I> & Serializable>

Base interface for something identifiable.

Author:
Bauke Scholtz
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The string representing the field name "id".
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the ID.
    void
    setId(I id)
    Sets the ID.
  • Field Details

  • Method Details

    • getId

      I getId()
      Returns the ID.
      Returns:
      The ID.
    • setId

      void setId(I id)
      Sets the ID.
      Parameters:
      id - The ID.