Uses of Annotation Interface
jakarta.validation.Constraint
Packages that use Constraint
Package
Description
Contains all the Jakarta Bean Validation provided constraints
also called built-in constraints.
Hibernate Validator specific constraints.
Hibernate Validator Brazilian constraints.
Hibernate Validator Polish constraints.
Hibernate Validator Russian constraints.
Hibernate Validator
Duration constraints.-
Uses of Constraint in jakarta.validation.constraints
Classes in jakarta.validation.constraints with annotations of type ConstraintModifier and TypeClassDescription@interfaceThe annotated element must be false.@interfaceThe annotated element must be true.@interfaceThe annotated element must be a number whose value must be lower or equal to the specified maximum.@interfaceThe annotated element must be a number whose value must be higher or equal to the specified minimum.@interfaceThe annotated element must be a number within accepted range.@interfaceThe string has to be a well-formed email address.@interfaceThe annotated element must be an instant, date or time in the future.@interfaceThe annotated element must be an instant, date or time in the present or in the future.@interfaceThe annotated element must be a number whose value must be lower or equal to the specified maximum.@interfaceThe annotated element must be a number whose value must be higher or equal to the specified minimum.@interfaceThe annotated element must be a strictly negative number (i.e. 0 is considered as an invalid value).@interfaceThe annotated element must be a negative number or 0.@interfaceThe annotated element must not benulland must contain at least one non-whitespace character.@interfaceThe annotated element must not benullnor empty.@interfaceThe annotated element must not benull.@interfaceThe annotated element must benull.@interfaceThe annotated element must be an instant, date or time in the past.@interfaceThe annotated element must be an instant, date or time in the past or in the present.@interfaceThe annotatedCharSequencemust match the specified regular expression.@interfaceThe annotated element must be a strictly positive number (i.e. 0 is considered as an invalid value).@interfaceThe annotated element must be a positive number or 0.@interfaceThe annotated element size must be between the specified boundaries (included). -
Uses of Constraint in org.hibernate.validator.constraints
Classes in org.hibernate.validator.constraints with annotations of type ConstraintModifier and TypeClassDescription@interfaceValidate that the code point length of a character sequence is between min and max included.@interfaceThe annotated element has to represent a valid credit card number.@interfaceTheMonetaryAmounthas to be in the rightCurrencyUnit.@interfaceChecks that the annotated character sequence is a valid EAN 13 number.@interfaceDeprecated.@interfaceChecks that the annotated character sequence is a valid ISBN.@interfaceValidate that the string is between min and max included.@interfaceLuhn algorithm check constraint.@interface@Modulo 10 check constraint.@interfaceModulo 11 check constraint.@interfaceDeprecated.As of release 5.1.0, replaced byMod10CheckandMod11Check@interfaceValidate that a character sequence is of normalization form.@interfaceDeprecated.use the standardNotBlankconstraint instead@interfaceDeprecated.use the standardNotEmptyconstraint instead@interfaceA method-level constraint, that evaluates a script expression against the annotated method or constructor.@interfaceThe annotated element has to be in the appropriate range.@interfaceA class-level constraint, that evaluates a script expression against the annotated element.@interfaceValidates that every object in the providedCollectionis unique, i.e. that we can't find 2 equal elements in the collection.@interfaceValidates the annotated string is an URL.@interfaceChecks that the annotated character sequence is a valid UUID. -
Uses of Constraint in org.hibernate.validator.constraints.br
Classes in org.hibernate.validator.constraints.br with annotations of type ConstraintModifier and TypeClassDescription@interfaceValidates a CNPJ (Cadastro de Pessoa Jurídica - Brazilian corporate tax payer registry number).@interfaceValidates a CPF (Cadastro de Pessoa Física - Brazilian individual taxpayer registry number).@interfaceValidates a Título Eleitoral (Brazilian Voter ID card number). -
Uses of Constraint in org.hibernate.validator.constraints.pl
Classes in org.hibernate.validator.constraints.pl with annotations of type ConstraintModifier and TypeClassDescription@interfaceValidates that aCharSequenceis a NIP number (9-digit Polish VAT identification number).@interfaceValidates that aCharSequenceis a PESEL (Polish national identification number).@interfaceValidates that aCharSequenceis a REGON number (9/14-digit Polish Taxpayer Identification Number). -
Uses of Constraint in org.hibernate.validator.constraints.ru
Classes in org.hibernate.validator.constraints.ru with annotations of type ConstraintModifier and TypeClassDescription@interfaceChecks that the annotated character sequence is a valid russian taxpayer identification number (INN in russian transliteration). -
Uses of Constraint in org.hibernate.validator.constraints.time
Classes in org.hibernate.validator.constraints.time with annotations of type ConstraintModifier and TypeClassDescription@interfaceThe annotatedDurationelement must be shorter than or equal to the one constructed as a sum ofDurationMax.nanos(),DurationMax.millis(),DurationMax.seconds(),DurationMax.minutes(),DurationMax.hours(),DurationMax.days().@interfaceThe annotatedDurationelement must be longer than or equal to the one constructed as a sum ofDurationMin.nanos(),DurationMin.millis(),DurationMin.seconds(),DurationMin.minutes(),DurationMin.hours(),DurationMin.days().
Emailconstraint instead