You are on page 1of 4

7/31/22, 7:26 PM The Bean Validation reference implementation.

- Hibernate Validator

Hibernate Validator
The Bean Validation reference
implementation.
Getting
started

Latest
stable (7.0)

Development
(8.0)

Express validation rules in a standardized way using annotation-based constraints and


benefit from transparent integration with a wide variety of frameworks.

Application layer agnostic validation


Hibernate Validator allows to express and validate application constraints.
The default metadata source are annotations, with the ability to override
and extend through the use of XML. It is not tied to a specific application
tier or programming model and is available for both server and client
application programming. But a simple example says more than 1000
words:

public class Car {

@NotNull

private String manufacturer;

@NotNull

@Size(min = 2, max = 14)

private String licensePlate;

@Min(2)

private int seatCount;

// ...

Extendable

https://hibernate.org/validator/ 1/4
7/31/22, 7:26 PM The Bean Validation reference implementation. - Hibernate Validator

Hibernate Validator offers a configurable bootstrap API as well as a range


of built-in constraints. The latter can easily be extended by creating custom
constraints.

Rich metadata API


Hibernate Validator gives access to constraint configuration via a metadata
API facilitating, for example, tooling integration.

Reference implementation
Hibernate Validator 6.x is the reference implementation Bean Validation
2.0.

Added value
Hibernate Validator offers additional value on top of the features required
by Bean Validation. For example, a programmatic constraint configuration
API as well as an annotation processor which plugs into the build process
and raises compilation errors whenever constraint annotations are
incorrectly used.

Latest news

Hibernate Validator
8.0.0.CR1 released
2022-06-30
I am glad to announce the
release of Hibernate
Validator 8.0.0.CR1, which
is the final step before our
Final release (except if
important issues are
reported, of...

Hibernate Validator
6.2.2.Final, 7.0.3.Final
and 8.0.0.Alpha1
released
2022-03-02
We released maintenance
releases for our Hibernate
Validator 6.2 and 7.0
branches. Both versions
bring back support for
https://hibernate.org/validator/ 2/4
7/31/22, 7:26 PM The Bean Validation reference implementation. - Hibernate Validator

validating java.sql.Date
which was broken when we
refactored...

Hibernate projects and


Log4j CVE
2021-12-16
Hibernate projects are not
affected by the
vulnerabilities behind CVE-
2021-45046 and CVE-
2021-44228: none of the
Hibernate projects has a
runtime dependency on
Log4j core. We use JBoss
Logging,...

Hibernate Validator
6.2.1.Final and
7.0.2.Final released
2021-12-14
Today, we released
maintenance releases for
our Hibernate Validator 6.2
and 7.0 branches. As of
now, you are all aware of
the Log4j 2 security issue...

Hibernate Validator
6.2.0.Final and
7.0.0.Final released
2021-01-06
As of now, you are probably
aware of the Jakarta EE 9
effort that aims to provide
new foundations for EE
innovation. Jakarta EE 9
is...

Hibernate Validator
6.1.7.Final and
6.0.22.Final released
2020-12-16
We just released Hibernate
Validator 6.1.7.Final which
contains some minor fixes.
This is a recommended
upgrade for everyone using
https://hibernate.org/validator/ 3/4
7/31/22, 7:26 PM The Bean Validation reference implementation. - Hibernate Validator
pg y g

Hibernate Validator and it is


a drop-in...

https://hibernate.org/validator/ 4/4

You might also like