Module storm

Interface Entity<ID>

Type Parameters:
ID - the type of the entity's primary key.

public interface Entity<ID>
Optional marker interface for record-based entities.

This interface is used to support the EntityRepository, which provides CRUD logic out-of-the-box.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Returns the primary key of the entity.
  • Method Details

    • id

      ID id()
      Returns the primary key of the entity.

      The primary key can be any type, such as a Integer or Long, but records representing compound keys are also supported.

      Returns:
      the primary key of the entity.