android jsr,GitHub - flibbertigibbet/hibernate-validator-android: Hibernate Validator - Bean Validat...

Hibernate Validator

Version: 5.1.3.Final, 22.10.2014

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 as well as method validation.

The default metadata source are 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-.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-.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):

org.hibernate

hibernate-validator

5.1.3.Final

You also need an API and implementation of the Unified Expression Language. These dependencies must be explicitly added in an SE environment.

In an EE environment they are often already provided.

javax.el

javax.el-api

2.2.4

org.glassfish.web

javax.el

2.2.4

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:

org.hibernate

hibernate-validator-cdi

5.1.3.Final

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 7 and Maven 3 (>= 3.0.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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值