Interface Identifiable<K>

Type Parameters:
K - ID type (Short, Integer, Long...?)
All Known Implementing Classes:
Car, Match, Player, Registration, Site, Sport
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Identifiable<K>
Interface to implement by any object stored in database. It must use a numeric technical identifier. Excepted for entities representing table associations as they use a composite key
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an object's unique identifier.
  • Method Details

    • getId

      K getId()
      Gets an object's unique identifier.
      Returns:
      Object identifier