org.jboss.shrinkwrap.descriptor.api.orm21.InheritanceType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.orm21;
/**
* This class implements the inheritance-type
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public enum InheritanceType
{
_SINGLE_TABLE("SINGLE_TABLE"),
_JOINED("JOINED"),
_TABLE_PER_CLASS("TABLE_PER_CLASS");
private String value;
InheritanceType (String value) { this.value = value; }
public String toString() {return value;}
public static InheritanceType getFromStringValue(String value)
{
for(InheritanceType type: InheritanceType.values())
{
if(value != null && type.toString().equals(value))
{ return type;}
}
return null;
}
}