• Stars
    star
    1,170
  • Rank 38,932 (Top 0.8 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 13 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hibernate Validator - Jakarta Bean Validation Reference Implementation

Hibernate Validator

Version: 8.0.1.Final - 2023-06-20

What is it?

This is the reference implementation of Jakarta Bean Validation 3.0. Jakarta Bean Validation defines a metadata model and API for JavaBean as well as method validation. The default metadata source are annotations, with the ability to override and extend the metadata 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 8 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 artifact to your Maven/Ivy/Gradle dependency list:

      <dependency>
          <groupId>org.hibernate.validator</groupId>
          <artifactId>hibernate-validator</artifactId>
          <version>8.0.1.Final</version>
      </dependency>
    

    You also need an API and implementation of the Unified Expression Language. These dependencies must be explicitly added in an SE environment. In a Jakarta EE environment, they are often already provided.

      <dependency>
         <groupId>org.glassfish.expressly</groupId>
         <artifactId>expressly</artifactId>
         <version>5.0.0</version>
      </dependency>
    
  • Jakarta Bean Validation defines integration points with CDI. If your application runs in an environment which does not provide this integration out of the box, you may use the Hibernate Validator CDI portable extension by adding the following dependency:

      <dependency>
         <groupId>org.hibernate.validator</groupId>
         <artifactId>hibernate-validator-cdi</artifactId>
         <version>8.0.1.Final</version>
      </dependency>
    
  • 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.

Licensing

Hibernate Validator itself as well as the Jakarta 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 17+ and Maven 3 (>= 3.3.1). With these prerequisites in place you can compile the source via:

mvn clean install

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

Continuous Integration

The official Continuous Integration service for the project is hosted on ci.hibernate.org.

We provide a .travis.yml file so that you can enable CI for your GitHub fork by enabling the build in your Travis CI account.

Hibernate Validator URLs

More Repositories

1

hibernate-orm

Hibernate's core Object/Relational Mapping functionality
Java
5,754
star
2

hibernate-search

Hibernate Search: full-text search for domain model
Java
490
star
3

hibernate-reactive

A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.
Java
421
star
4

hibernate-ogm

Hibernate OGM - Domain model persistence for NoSQL datastores
Java
319
star
5

hibernate-tools

Code generation, reverse engineering, ant task and more tools for Hibernate Core
Java
299
star
6

hibernate-demos

Repository for demos of various Hibernate projects
Java
275
star
7

hibernate-shards

Horizontal partitioning for Hibernate O/RM
Java
92
star
8

query-validator

Compile time validation for HQL and JPQL queries in Java code
Java
82
star
9

hibernate-test-case-templates

Templates and examples to report issues to Hibernate
Java
59
star
10

gradle-maven-publish-auth

Gradle plugin for managing authentication of upload tasks
Java
42
star
11

hibernate-metamodelgen

Annotation Processor to generate JPA 2 static metamodel classes
Java
33
star
12

hibernate-jpa-api

Clean-room definition of JPA APIs intended for transitory use in Hibernate JPA development
32
star
13

hibernate-hql-parser

New experimental parser for JP-QL queries
Java
30
star
14

hibernate-commons-annotations

Hibernate Commons Annotations project
Java
28
star
15

hibernate.org

Source for the hibernate.org website
JavaScript
28
star
16

hibernate-ogm-ignite

Hibernate OGM dialect for Apache Ignite
Java
16
star
17

hibernate-ogm-cassandra

Hibernate OGM integration with Cassandra
Java
10
star
18

hibernate.github.io

Legacy GitHub Pages deployment for https://hibernate.org. This repository is obsolete and is not longer used.
HTML
8
star
19

hibernate-infra

Configuration of Hibernate project infrastructure: CI, websites, bot deployment.
Shell
8
star
20

hibernate-semantic-query

Semantic query model and interpreter for HQL/JPQL and JPA Criteria queries
Java
8
star
21

hibernate-ide-codestyles

IDE code-styles for Hibernate projects
7
star
22

lucene-jbossmodules

Repackaging the Apache Lucene libraries to be deployed as modules in WildFly
Java
7
star
23

hibernate-ogm-redis

Hibernate OGM integration with Redis
Java
6
star
24

in.relation.to

Source for the in.relation.to website
HTML
5
star
25

gradle-xjc-plugin

A Gradle plugin for performing XJC for generating a JAXB binding model from an XSD
Java
4
star
26

hibernate-matrix-testing

Support for running tests against a number of database profiles
Java
4
star
27

version-injection-plugin

Gradle plugin used by Hibernate to inject project version into compiled classes
Java
4
star
28

hibernate-presentations

Hibernate presentations
Ruby
4
star
29

jakarta-transformer-plugin

Java
3
star
30

hibernate-jenkins-pipeline-helpers

Hibernate helpers for Jenkins pipelines
Groovy
3
star
31

quarkus-local-cache

A Hibernate Cache optimised for Quarkus
3
star
32

beanvalidation-benchmark

A benchmark for Bean Validation implementations
Java
3
star
33

hibernate-asciidoctor-extensions

Asciidoctor extensions developed for the Hibernate projects
Java
3
star
34

gson-jbossmodules

Repackaging the Gson libraries to be deployed as modules in WildFly
Java
2
star
35

hibernate-ogm-ehcache

Hibernate OGM integration with EhCache
Java
2
star
36

hibernate-ogm-couchdb

Hibernate OGM integration with CouchDB
Java
2
star
37

elasticsearch-client-jbossmodules

Repackaging the Elasticsearch client libraries to be deployed as modules in WildFly
Java
2
star
38

hibernate-noorm-release-scripts

Older release scripts for Hibernate projects (except Hibernate ORM). DEPRECATED: Use https://github.com/hibernate/hibernate-release-scripts instead
Shell
2
star
39

hibernate-models

An abstraction over "reflection" and annotations
Java
2
star
40

hibernate-jdocbook-style

Documentation style
XSLT
1
star
41

hibernate-release-scripts

Shell
1
star
42

hibernate-search-benchmark

Benchmarks for performance testing of Hibernate Search.
Java
1
star
43

database-profile-plugin

Support for testing against multiple databases via profiles
Java
1
star
44

aws-v4-signer-java-jbossmodules

Java
1
star
45

hibernate-search-6-poc

Content was moved to https://github.com/hibernate/hibernate-search/. See readme for more information.
1
star
46

hibernate-github-bot

A bot to handle GitHub events from repositories of the Hibernate organization
Java
1
star
47

docs.hibernate.org

Documentation website for the Hibernate projects
1
star
48

hibernate-search-develocity-extension

A Maven extension to configure Develocity build cache for the Hibernate Search project
Java
1
star