Hibernate Validator

6.0 series stable

Bean Validation 2.0 support, performance improvements.

Compatibility

Java 8+
Bean Validation 2.0

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

Documentation

Documentation for this specific series 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

Maven, Gradle...

Maven artifacts of Hibernate Validator are published to Maven Central and to the JBoss Maven Repository. Refer to the Maven Getting Started guide on the Jboss Wiki for more information on how to configure Maven.

Below are the Maven coordinates of the main artifacts.

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

Zip archive

Direct download is available from SourceForge:

Download Zip archive

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

What's new

Latest release announcement (2017-11-15): 6.0.5.Final.

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

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.

Performance improvements

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

It can be up to two times faster than Hibernate Validator 5.4.1.Final in some cases.

Memory footprint improvements

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

Migrate

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

Releases in this series

6.0.5.Final

2017-11-15 - bugfixes, @UniqueElements constraint, temporal validation tolerance

org.hibernate.validator:hibernate-validator:6.0.5.Final

Download Resolved issues Release announcement

6.0.4.Final
6.0.3.Final

2017-10-19 - new ScriptEvaluatorFactory SPI, new @CodePointLength constraint, bugfixes

org.hibernate.validator:hibernate-validator:6.0.3.Final

Download Resolved issues Release announcement

6.0.2.Final
6.0.1.Final
6.0.0.Final

2017-08-07 - Not publicly released.

Resolved issues

6.0.0.Beta1

2017-05-16 - improved Bean Validation 2.0 support, improved container element constraint support

org.hibernate.validator:hibernate-validator:6.0.0.Beta1

Download Resolved issues Release announcement

6.0.0.Alpha2

2017-03-30 - improved Bean Validation 2.0 support, improved container element constraint support

org.hibernate.validator:hibernate-validator:6.0.0.Alpha2

Download Resolved issues Release announcement

6.0.0.Alpha1

2017-02-16 - Bean Validation 2.0 initial support, nested type argument constraints, lambdas

org.hibernate.validator:hibernate-validator:6.0.0.Alpha1

Download Resolved issues Release announcement

Back to top