Interface IdentityGenerator<I>

  • Type Parameters:
    I - the identifier type.

    public interface IdentityGenerator<I>
    A generator of identity for entities.
    See Also:
    IdentityService
    • Method Detail

      • generate

        <E extends Entity<I>> I generate​(Class<E> entityClass)
        Generate a new identifier for an entity of the specified class.
        Type Parameters:
        E - the entity type.
        Parameters:
        entityClass - the entity class to generate an identity for.
        Returns:
        the generated identifier.