Hibernate Validator

5.3 series end-of-life

Dynamic constraint payload, parameter relaxation, new api for programmatic constraint definition, new translations.

Compatibility

Java 6, 7 or 8
Bean Validation 1.1

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 5.3 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 5.3 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:hibernate-validator:5.3.6.Final
Core implementation
org.hibernate:hibernate-validator-cdi:5.3.6.Final
CDI integration
org.hibernate:hibernate-validator-osgi:5.3.6.Final
OSGi integration
org.hibernate:hibernate-validator-annotation-processor:5.3.6.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 5.3 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 5.3, 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.

Dynamic payloads for constraints

Hibernate Validator 5.3 allows you to enrich custom constraint violations with additional context data.

Code examining constraint violations can access and interpret this data in a safer way than by parsing string-based constraint violation messages.

You can find more information about this feature in the 5.3.0.Alpha1 release announcement.

Relaxation of requirements for method validation in class hierarchies

The Bean Validation specification defines a set of rules which apply when defining constraints on methods within class hierarchies.

As per specification a Bean Validation provider is allowed to relax these preconditions.

Starting with 5.3, it is now possible to do so as explained in our documentation.

Programmatic API improvements

Until now, it was only possible to alter the list of ConstraintValidator of a given constraint via the XML configuration. 5.3 brings the ability to do it via the programmatic API.

JDK 9 support

5.3 is the first version compatible with JDK 9.

Other improvements

  • Arabic, Russian and Slovak translations

Releases in this series

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

See also the Maintenance policy.

5.3.6.Final

2017-10-19

ASL v2

5.3.5.Final

2017-03-15

ASL v2

bug fixes, JDK 9 related updates

Maven artifacts Download Resolved issues

5.3.3.Final

2016-11-22

ASL v2

5.3.2.Final

2016-11-10

ASL v2

5.3.1.Final

2016-10-27

ASL v2

5.3.0.Final

2016-10-11

ASL v2

dynamic constraint payload, parameter relaxation, new api for programmatic constraint definition, new translations

Maven artifacts Download Resolved issues Release announcement

5.3.0.CR1

2016-09-05

ASL v2

new api for programmatic constraint definition, translations

Maven artifacts Download Resolved issues Release announcement

5.3.0.Alpha1

2016-01-15

ASL v2

dynamic constraint payload, parameter relaxation

Maven artifacts Download Resolved issues Release announcement

Back to top