Enum UnsupportedFeatureHandling
- java.lang.Object
-
- java.lang.Enum<UnsupportedFeatureHandling>
-
- org.hibernate.boot.jaxb.hbm.transform.UnsupportedFeatureHandling
-
- All Implemented Interfaces:
Serializable
,Comparable<UnsupportedFeatureHandling>
public enum UnsupportedFeatureHandling extends Enum<UnsupportedFeatureHandling>
How to handle features in the transformed `hbm.xml` which are not supported in the `mapping.xml` XSD
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnsupportedFeatureHandling
fromSetting(Object value)
static UnsupportedFeatureHandling
fromSetting(Object value, Function<Object,UnsupportedFeatureHandling> defaultValueSupplier)
static UnsupportedFeatureHandling
fromSetting(Object value, UnsupportedFeatureHandling defaultValue)
static UnsupportedFeatureHandling
valueOf(String name)
Returns the enum constant of this type with the specified name.static UnsupportedFeatureHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final UnsupportedFeatureHandling ERROR
Throw an exception.
-
WARN
public static final UnsupportedFeatureHandling WARN
Similar toIGNORE
except that we log a warning
-
IGNORE
public static final UnsupportedFeatureHandling IGNORE
Simply ignore the feature. Logs a debug message
-
PICK
public static final UnsupportedFeatureHandling PICK
Pick the closest mapping, if possible. Falls back toIGNORE
if there is no close match
-
-
Method Detail
-
values
public static UnsupportedFeatureHandling[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnsupportedFeatureHandling c : UnsupportedFeatureHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnsupportedFeatureHandling valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromSetting
public static UnsupportedFeatureHandling fromSetting(Object value)
-
fromSetting
public static UnsupportedFeatureHandling fromSetting(Object value, UnsupportedFeatureHandling defaultValue)
-
fromSetting
public static UnsupportedFeatureHandling fromSetting(Object value, Function<Object,UnsupportedFeatureHandling> defaultValueSupplier)
-
-