Interface EntityDefinition.PrimaryKey

Enclosing interface:
EntityDefinition

public static sealed interface EntityDefinition.PrimaryKey
Holds the primary key definition for an entity type
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list containing all primary key columns associated with this entity type.
    Returns a list containing the definitions of all primary key columns associated with this entity type.
  • Method Details

    • columns

      List<Column<?>> columns()
      Returns a list containing all primary key columns associated with this entity type. If the entity has no primary key columns defined, an empty list is returned.
      Returns:
      the primary key columns of this entity type, sorted by primary key column index
    • definitions

      List<ColumnDefinition<?>> definitions()
      Returns a list containing the definitions of all primary key columns associated with this entity type. If the entity has no primary key columns defined, an empty list is returned.
      Returns:
      the primary key column definitions of this entity type, sorted by primary key column index