Hibernate Icon

Hibernate

1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 (55) Read Reviews | Last Updated
Windows Mac Linux
Name Modified Size Downloads / Week Status
Parent folder
Totals: 4 Items   30.7 MB 5
hibernate-validator-5.0.0.CR1-dist.zip 2013-02-21 16.6 MB 11 weekly downloads
hibernate-validator-5.0.0.CR1-dist.tar.gz 2013-02-21 14.1 MB 11 weekly downloads
changelog.txt 2013-02-21 41.9 kB 11 weekly downloads
README.md 2013-02-21 3.5 kB 22 weekly downloads

Hibernate Validator

Version: 5.0.0.CR1, 21.02.2013

What is it?

This is the reference implementation of JSR-349 - Bean Validation 1.1. 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.

Documentation

The documentation for this release is included in the docs directory of the distribution package or can be accessed online.

Release Notes

The full list of changes for this release can be found in changelog.txt.

System Requirements

JDK 1.6 or above.

Using Hibernate Validator

  • In case you use the distribution archive from the download site, copy dist/hibernate-validator-<version>.jar together with all jar files from dist/lib/required into the classpath of your application. For the purposes of logging, Hibernate Validator uses the JBoss Logging API, an abstraction layer which supports several logging solutions such (e.g. log4j or the logging framework provided by the JDK) as implementation. Just add a supported logging library to the classpath (e.g. log4j-<version>.jar) and JBoss Logging will delegate any log requests to that provider.

  • Add the following to your Maven or Ivy dependency list (Hibernate Validator can be found in the JBoss Maven repository):

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>5.0.0.CR1</version>
    </dependency>
    
  • hibernate-validator-annotation-processor-&lt;version&gt;.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.

Licensing

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.

Build from Source

You can build Hibernate Validator from source by cloning the git repository git://github.com/hibernate/hibernate-validator.git. You will also need a JDK 6 or 7 and a Maven 3. With these prerequisites in place you can compile the source via

mvn clean install -s settings-example.xml

The documentation module requires an additional tool called po2xml. If you don't have po2xml installed you can skip the building of the documentation via:

mvn clean install -DdisableDocumentationBuild=true -s settings-example.xml

There are more build options available as well. For more information refer to Contributing to Hibernate Validator.

Hibernate Validator URLs

Source: README.md, updated 2013-02-21