Hibernate Validator

5.3 series stable

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

Compatibility

Java 6+
Bean Validation 1.1

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: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

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

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

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

Migrate

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

Releases in this series

5.3.6.Final
5.3.5.Final
5.3.0.Final

2016-10-11 - dynamic constraint payload, parameter relaxation, new api for programmatic constraint definition, new translations

org.hibernate:hibernate-validator:5.3.0.Final

Download Resolved issues Release announcement

5.3.0.CR1

2016-09-05 - new api for programmatic constraint definition, translations

org.hibernate:hibernate-validator:5.3.0.CR1

Download Resolved issues Release announcement

5.3.0.Alpha1
Back to top