public enum GenerationType

  1. Object
  2. Enum<GenerationType>
  3. GenerationType

ImplementsComparable<GenerationType>

Identifier generation strategies for a single identifier field.

Enum constants

IDENTITYUses a database-generated integral identity.
UUIDAssigns a generated UUID string.
SEQUENCEUses a native PostgreSQL sequence, or the portable sequence table on other backends.
TABLEAllocates integral identifiers using the portable sequence table.

Methods

public static GenerationType[] values()
public static GenerationType valueOf(String name)

Inherited methods

Enum constant details

IDENTITY

IDENTITY
Uses a database-generated integral identity.

UUID

UUID
Assigns a generated UUID string.

SEQUENCE

SEQUENCE
Uses a native PostgreSQL sequence, or the portable sequence table on other backends.

TABLE

TABLE
Allocates integral identifiers using the portable sequence table.

Method details

values

public static GenerationType[] values()

valueOf

public static GenerationType valueOf(String name)