package io.ebeaninternal.dbmigration.migration;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


Java class for identityType.

The following schema fragment specifies the expected content contained within this class.

<simpleType name="identityType">
  <restriction base="{http://www.w3.org/2001/XMLSchema}string">
    <enumeration value="identity"/>
    <enumeration value="sequence"/>
    <enumeration value="generator"/>
    <enumeration value="external"/>
    <enumeration value="default"/>
  </restriction>
</simpleType>
/** * <p>Java class for identityType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="identityType"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="identity"/> * &lt;enumeration value="sequence"/> * &lt;enumeration value="generator"/> * &lt;enumeration value="external"/> * &lt;enumeration value="default"/> * &lt;/restriction> * &lt;/simpleType> * </pre> */
@XmlType(name = "identityType") @XmlEnum public enum IdentityType { @XmlEnumValue("identity") IDENTITY("identity"), @XmlEnumValue("sequence") SEQUENCE("sequence"), @XmlEnumValue("generator") GENERATOR("generator"), @XmlEnumValue("external") EXTERNAL("external"), @XmlEnumValue("default") DEFAULT("default"); private final String value; IdentityType(String v) { value = v; } public String value() { return value; } public static IdentityType fromValue(String v) { for (IdentityType c : IdentityType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }