Hibernate Validator

7.0 series stable

Jakarta Bean Validation 3.0, jakarta.* packages

Compatibility

Java 8 or 11
Jakarta Bean Validation 3.0

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

See also the Compatibility policy.

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 the JBoss Maven repository.

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

Getting started

If you want to start using the library, 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

Latest release announcement (2020-12-23): 7.0.0.Final.

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

Jakarta Bean Validation 3.0

Hibernate Validator 7.0 is the reference implementation for Jakarta Bean Validation 3.0.

The main change is that all the dependencies using javax. packages are now using jakarta.* packages.

Upgrade to Hibernate Validator 7 is only recommended if you are moving to Jakarta EE 9.

Expression Language overhaul (also in 6.2)

Expression Language disabled by default for custom violations.

Ability to define the Expression Language features enabled for more safety.

@SafeHtml removal (also in 6.2)

The @SafeHtml constraint marked as deprecated for a while has been dropped from the codebase.

Releases in this series

Back to top