org.hibernate.boot.jaxb.hbm.spi.JaxbHbmOnDeleteEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.01.19 at 06:36:52 PM CET
//
package org.hibernate.boot.jaxb.hbm.spi;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for OnDeleteEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="OnDeleteEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="cascade"/>
* <enumeration value="noaction"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "OnDeleteEnum")
@XmlEnum
public enum JaxbHbmOnDeleteEnum {
@XmlEnumValue("cascade")
CASCADE("cascade"),
@XmlEnumValue("noaction")
NOACTION("noaction");
private final String value;
JaxbHbmOnDeleteEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static JaxbHbmOnDeleteEnum fromValue(String v) {
for (JaxbHbmOnDeleteEnum c: JaxbHbmOnDeleteEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}