Enum Class ValidationConstraintDdlInfluence

java.lang.Object
java.lang.Enum<ValidationConstraintDdlInfluence>
org.hibernate.tool.schema.ValidationConstraintDdlInfluence
All Implemented Interfaces:
Serializable, Comparable<ValidationConstraintDdlInfluence>, Constable

@Incubating public enum ValidationConstraintDdlInfluence extends Enum<ValidationConstraintDdlInfluence>
Controls whether Jakarta Validation constraints (such as @NotNull, @Size, @Digits and others) influence the generated DDL schema.
Since:
8.0
See Also:
  • Enum Constant Details

    • AUTO

      public static final ValidationConstraintDdlInfluence AUTO
      Apply validation constraints to the DDL schema if a Jakarta Validation provider is available on the classpath; silently skip otherwise.
    • REQUIRED

      public static final ValidationConstraintDdlInfluence REQUIRED
      Apply validation constraints to the DDL schema, failing with an error if no Jakarta Validation provider is available.
    • DISABLED

      public static final ValidationConstraintDdlInfluence DISABLED
      Do not apply validation constraints to the DDL schema.
  • Method Details

    • values

      public static ValidationConstraintDdlInfluence[] 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 ValidationConstraintDdlInfluence 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
    • resolve

      public static ValidationConstraintDdlInfluence resolve(ServiceRegistry serviceRegistry, Set<ValidationMode> validationModes)