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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApply validation constraints to the DDL schema if a Jakarta Validation provider is available on the classpath; silently skip otherwise.Do not apply validation constraints to the DDL schema.Apply validation constraints to the DDL schema, failing with an error if no Jakarta Validation provider is available. -
Method Summary
Modifier and TypeMethodDescriptionresolve(ServiceRegistry serviceRegistry, Set<ValidationMode> validationModes) Returns the enum constant of this class with the specified name.static ValidationConstraintDdlInfluence[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Apply validation constraints to the DDL schema if a Jakarta Validation provider is available on the classpath; silently skip otherwise. -
REQUIRED
Apply validation constraints to the DDL schema, failing with an error if no Jakarta Validation provider is available. -
DISABLED
Do not apply validation constraints to the DDL schema.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
resolve
public static ValidationConstraintDdlInfluence resolve(ServiceRegistry serviceRegistry, Set<ValidationMode> validationModes)
-