Version: 4.2.0.Final, 20.06.2011
What is it?
This is the reference implementation of JSR 303 - Bean Validation.
Bean Validation defines a metadata model and API for JavaBean validation.
The default metadata source is annotations, with the ability to override and extend
the meta-data through the use of XML validation descriptors.
Prior to version 4.x Hibernate Validators was based on a different source base which
is not based on JSR 303. This code can be accessed via
The documentation for this release is included in the docs directory of distribution package
or online under http://www.hibernate.org/subprojects/validator/docs.html
The full list of changes for this release can be found at
JDK 1.5 or above.
Using Hibernate Validator
- In case you use the distribution archive from the download site, copy hibernate-validator-<version>.jar together
with all jar files from lib/required into the classpath of your application. You can switch the slf4j binding
jars for log4j (log4j-<version>.jar and slf4j-log4j12-<version>.jar) with the slf4j binding files of
your choice. See http://www.slf4j.org/manual.html
In case you are using Java 5 you have to also include all the jar files from the lib/jdk5 directory.
The jar files contain the classes needed for JAXB. If you don't use the xml configuration and XML configuration
is disabled via Configuration.ignoreXmlConfiguration the jar files from the lib/jdk5 directory don't have to be added.
- Add the following to your maven or ivy dependency list:
Hibernate Validator can be found in the JBoss Maven repository:
hibernate-validator-annotation-processor-<version>.jar is an optional jar which can be integrated with your build
environment respectively IDE to verify that constraint annotations are correctly used. Refer to the online
documentation for more information.
Hibernate Validator itself as well as the Bean Validation API and TCK are all provided and distributed under
the Apache Software License 2.0. Refer to license.txt for more information
Hibernate Validator URLs
Home Page: http://validator.hibernate.org
Mailing Lists: http://www.hibernate.org/community/mailinglists.html
Source Code: git://github.com/hibernate/hibernate-validator.git
Issue Tracking: http://opensource.atlassian.com/projects/hibernate/browse/HV