Hibernate Validator

6.0 series end-of-life

Bean Validation 2.0 support, performance improvements.

Compatibility

Java 8, 11 or 17
Bean Validation 2.0
Java EE 8
Jakarta EE 8

Not compatible with your requirements? Have a look at the other series.

See also the Compatibility policy and Maintenance policy.

Documentation

Documentation for Hibernate Validator 6.0 can be accessed through the links below:

HTML PDF API (JavaDoc)

You can find more documentation for all series on the documentation page.

How to get it

Hibernate Validator 6.0 has reached its end-of-life: we recommend that you upgrade to a newer series if possible.

See also the Maintenance policy.

Maven, Gradle...

Maven artifacts of Hibernate Validator are published to Maven Central. Most build tools fetch artifacts from Maven Central by default, but if that's not the case for you, see this page to configure your build tool.

You can find the Maven coordinates of all artifacts through the link below:

Maven artifacts

Below are the Maven coordinates of the main artifacts.

org.hibernate.validator:hibernate-validator:6.0.23.Final
Core implementation
org.hibernate.validator:hibernate-validator-cdi:6.0.23.Final
CDI integration
org.hibernate.validator:hibernate-validator-osgi:6.0.23.Final
OSGi integration
org.hibernate.validator:hibernate-validator-annotation-processor:6.0.23.Final
Annotation processor

All Maven artifacts of this project released after 2022-02-08 are signed.

To verify signed Maven artifacts, head to this page.

Direct download

A ZIP archive containing all JAR files, documentation and source is available from SourceForge:

Download ZIP archive

Individual Maven artifacts may be downloaded directly from the Maven repository:

Maven Central subdirectory

See here for how to download all dependencies of your Maven project to a local directory on your filesystem.

See here for how to download an explicitly listed set of artifacts to a local directory on your filesystem.

More information about specific releases (announcements, download links) can be found here.

Getting started

Hibernate Validator 6.0 has reached its end-of-life: we recommend that you upgrade to a newer series if possible.

See also the Maintenance policy.

If you want to start using Hibernate Validator 6.0, please refer to the getting started guide:

HTML PDF

Migrating

If you need to upgrade from a previous series, please refer to the migration guide:

HTML

What's new

A detailed list of new features, improvements and fixes in this series can be found on our issue tracker.

Bean Validation 2.0

Hibernate Validator 6.0 is the Reference Implementation of the Bean Validation 2.0 specification so it comes with all its new features:

  • First class support of container element constraints and cascaded validation (think private Map<@Valid @NotNull OrderCategory, List<@Valid @NotNull Order>> orderByCategories;);

  • Support for the new JSR 310 date/time data types for @Past and @Future;

  • New built-in constraints: @Positive, @PositiveOrZero, @Negative, @NegativeOrZero, @PastOrPresent and @FutureOrPresent

We also have leveraged the new features of JDK 8 (built-in constraints are marked repeatable, parameter names are retrieved via reflection) as it is now the minimal version required.

Other new features

Performance improvements

We have done quite a lot of benchmarking and have significantly improved the performances of Hibernate Validator.

It can be up to four times faster than Hibernate Validator 5.4.2.Final in some cases.

Memory footprint improvements

Hibernate Validator collects a lot of metadata on the constrained beans. We reduced significantly the memory occupied by these metadata.

Releases in this series

Hibernate Validator 6.0 has reached its end-of-life: we recommend that you upgrade to a newer series if possible.

See also the Maintenance policy.

6.0.22.Final

2020-12-16

fix issue when using non-Hibernate Validator config class

Maven artifacts Download Resolved issues Release announcement

6.0.21.Final

2020-09-30

6.0.20.Final

2020-05-07

6.0.19.Final

2020-03-27

translation fixes, BeanMetaDataClassNormalizer

Maven artifacts Download Resolved issues Release announcement

6.0.18.Final

2019-10-25

6.0.16.Final

2019-03-21

6.0.14.Final

2019-01-07

critical bugfix, Dutch translation fixes, WildFly 15.0.0.Final support

Maven artifacts Download Resolved issues Release announcement

6.0.12.Final

2018-08-13

6.0.11.Final

2018-07-18

6.0.10.Final

2018-05-15

6.0.9.Final

2018-03-27

constraint validator payload, bugfixes, performance improvements

Maven artifacts Download Resolved issues Release announcement

6.0.8.Final

2018-03-08

constraint validator payload, bugfixes, performance improvements

Maven artifacts Download Resolved issues Release announcement

6.0.7.Final

2017-12-20

6.0.6.Final

2017-12-14

@ISBN constraint, performance improvements

Maven artifacts Download Resolved issues

6.0.5.Final

2017-11-15

bugfixes, @UniqueElements constraint, temporal validation tolerance

Maven artifacts Download Resolved issues Release announcement

6.0.4.Final

2017-10-25

WildFly 11 Final patch, performance improvements

Maven artifacts Download Resolved issues Release announcement

6.0.3.Final

2017-10-19

new ScriptEvaluatorFactory SPI, new @CodePointLength constraint, bugfixes

Maven artifacts Download Resolved issues Release announcement

6.0.2.Final

2017-08-22

bug fixes, updated Brazilian Portuguese translation

Maven artifacts Download Resolved issues Release announcement

6.0.1.Final

2017-08-07

Bean Validation 2.0 support, performance improvements

Maven artifacts Download Resolved issues Release announcement

6.0.0.Final

2017-08-07

Not publicly released.

6.0.0.CR3

2017-07-11

6.0.0.CR2

2017-07-05

6.0.0.CR1

2017-06-29

6.0.0.Beta2

2017-05-24

6.0.0.Beta1

2017-05-16

improved Bean Validation 2.0 support, improved container element constraint support

Maven artifacts Download Resolved issues Release announcement

6.0.0.Alpha2

2017-03-30

improved Bean Validation 2.0 support, improved container element constraint support

Maven artifacts Download Resolved issues Release announcement

6.0.0.Alpha1

2017-02-16

Bean Validation 2.0 initial support, nested type argument constraints, lambdas

Maven artifacts Download Resolved issues Release announcement

Back to top