Giter Club home page Giter Club logo

hibernate-validator's Introduction

Hibernate Validator

Version: 4.3.0.Beta1, 04.04.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.

A bit of history

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 this GitHub tag.

Documentation

The documentation for this release is included in the docs directory of 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.5 or above.

Using Hibernate Validator

  • In case you use the distribution archive from the download site, copy dist/hibernate-validator-.jar together with all jar files from dist/lib/required into the classpath of your application. You can switch the slf4j binding jars for log4j (log4j-.jar and slf4j-log4j12-.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 dist/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 dist/lib/jdk5 directory don't have to be added.

or

  • 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>4.3.0.Beta1</version>
      </dependency>
    

hibernate-validator-annotation-processor-.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

hibernate-validator's People

Contributors

hferentschik avatar gunnarmorling avatar kevinpollet avatar emmanuelbernard avatar gastaldi avatar jrnt30 avatar stliu avatar

Stargazers

Mike Rosene avatar

Watchers

Mike Rosene avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.