Hibernate Validator

5.4 series stable

JavaMoney support, annotation processor improvements.

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

JavaMoney support

Hibernate Validator 5.4 introduces JavaMoney (JSR 354) support. You can use @DecimalMin and @DecimalMax constraints on your MonetaryAmount fields and we also introduced a new @Currency annotation allowing you to constrain the currency used in your MonetaryAmounts.

More information can be found in this blog post.

Annotation processor improvements

A lot of improvements were made to the annotation processor to keep it up to speed with our latest features.

WildFly patch

Starting with Hibernate Validator 5.4, we provide a WildFly patch so that you can easily use our latest versions on top of WildFly.

You can find more information in the 5.4.0.Beta1 release announcement.

Other improvements

  • Improvements to the @Email constraint

  • New constraints specific to Polish identification numbers

  • Ukrainian and Persian translations

Migrate

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

Releases in this series

5.4.2.Final

2017-10-19 - bugfixes, security fix, JDK 9 related updates

org.hibernate:hibernate-validator:5.4.2.Final

Download Resolved issues

5.4.0.Final
5.4.0.CR1

2017-01-12 - JavaMoney support improvements, annotation processor improvements

org.hibernate:hibernate-validator:5.4.0.CR1

Download Resolved issues Release announcement

5.4.0.Beta1

2016-12-08 - JavaMoney support, annotation processor improvements, WildFly patch

org.hibernate:hibernate-validator:5.4.0.Beta1

Download Resolved issues Release announcement

Back to top