001package io.ebean.annotation;
002
003/**
004 * The type of identity to be used.
005 */
006public enum IdentityType {
007
008  /**
009   * Use the platform default identity type (database Identity or Sequence).
010   */
011  AUTO,
012
013  /**
014   * Use database IDENTITY column.
015   */
016  IDENTITY,
017
018  /**
019   * Using a database SEQUENCE for the identity value.
020   */
021  SEQUENCE,
022
023  /**
024   * Application supplies the identity value.
025   * <p>
026   * No database sequence or identity column will be generated in DDL and instead
027   * the value is always expected to be supplied by the application or custom generator.
028   */
029  APPLICATION
030}