Enum Class CheckHandling

java.lang.Object
java.lang.Enum<CheckHandling>
org.hibernate.cfg.CheckHandling
All Implemented Interfaces:
Serializable, Comparable<CheckHandling>, Constable

@Incubating(since="8.0") public enum CheckHandling extends Enum<CheckHandling>
Enumerates the possible reactions to a boot-time check.
Since:
8.0
  • Enum Constant Details

    • WARN

      public static final CheckHandling WARN
      Log a warning.
    • ERROR

      public static final CheckHandling ERROR
      Throw an exception, preventing boot.
    • IGNORE

      public static final CheckHandling IGNORE
      Ignore the check entirely.
  • Method Details

    • values

      public static CheckHandling[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CheckHandling valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • interpret

      public static CheckHandling interpret(Object value, CheckHandling defaultValue)