Compatibility
| Java | 8, 11 or 17 |
| Bean Validation | 2.0 |
| Java EE | 8 |
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 6.0 can be accessed through the links below:
Getting started guide HTML PDF
What's new HTML
Migration guide HTML
Reference HTML PDF API (Javadoc)
You can find more documentation for all series on the documentation page.
How to get it
Current series status: end-of-life
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 issue tracker.
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
@Pastand@Future; -
New built-in constraints:
@Positive,@PositiveOrZero,@Negative,@NegativeOrZero,@PastOrPresentand@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.
Other new features
-
Constraint validator payload: ability to pass a payload to your constraint validators
-
Additional constraints:
@ISBN,@UniqueElementsand@CodePointLength -
ScriptEvaluatorFactorySPI: ability to support non JSR 223 scripting languages such as Spring EL
Performance improvements
We have done quite a lot of benchmarking and have significantly improved the performances of Hibernate Validator.
It can be up to four times faster than Hibernate Validator 5.4.2.Final in some cases.
Memory footprint improvements
Hibernate Validator collects a lot of metadata on the constrained beans. We reduced significantly the memory occupied by these metadata.
Releases in this series
|
Hibernate Validator 6.0 has reached its end-of-life: we recommend that you upgrade to a newer series if possible. See also the Maintenance policy. |
fix issue when using non-Hibernate Validator config class
expose property path in context, small fixes
fix for CVE-2020-10693
translation fixes, BeanMetaDataClassNormalizer
bugfixes, deprecation of @SafeHtml
bugfixes, JDK 12 support, Windows build
critical bugfix, Dutch translation fixes, WildFly 15.0.0.Final support
minor bugfixes
CDI integration changes, JDK 11 support
JDK 11 support, bugfixes
bugfixes, Dutch translation
constraint validator payload, bugfixes, performance improvements
constraint validator payload, bugfixes, performance improvements
upgrade to Bean Validation 2.0.1.Final
@ISBN constraint, performance improvements
bugfixes, @UniqueElements constraint, temporal validation tolerance
WildFly 11 Final patch, performance improvements
new ScriptEvaluatorFactory SPI, new @CodePointLength constraint, bugfixes
bug fixes, updated Brazilian Portuguese translation
Bean Validation 2.0 support, performance improvements
Not publicly released.
Bean Validation 2.0.0.CR3 support
Bean Validation 2.0.0.CR2 support
Bean Validation 2.0.0.CR1 support
Bean Validation 2.0.0.Beta2 support
improved Bean Validation 2.0 support, improved container element constraint support
improved Bean Validation 2.0 support, improved container element constraint support
Bean Validation 2.0 initial support, nested type argument constraints, lambdas