Interface IdGenerator<T>

  • Type Parameters:
    T - the type of the id value.


    public interface IdGenerator<T>
    Classes that implement this interface define a way to create Ids for Pojo's.
    Since:
    3.10
    • Method Detail

      • generate

        T generate​()
        Generates an id for a Pojo.
        Returns:
        the generated id value
      • getType

        Class<T> getType​()
        Returns:
        the type of the generated id.