Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an implementation of JSR-303 (bean validation) available?

I know there are non-standard frameworks such as commons-validator, and hibernate validator.

I wanted to know if someone knows an implementation of the official standard.

like image 287
flybywire Avatar asked Sep 06 '09 05:09

flybywire


People also ask

What is Bean Validation API?

The Bean Validation API is introduced with the Java™ Enterprise Edition 6 platform as a standard mechanism to validate JavaBeans in all layers of an application, including presentation, business, and data access. Before the Bean Validation specification, JavaBeans were validated in each layer.


1 Answers

There are 2 compliant implementations now:

  • Apache Bean Validation (formerly agimatec)
  • Hibernate Validator

You can access a benchmark and a quick description of both here: http://carinae.net/2010/06/benchmarking-hibernate-validator-and-apache-beanvalidation-the-two-jsr-303-implementations/

like image 112
bashflyng Avatar answered Sep 20 '22 15:09

bashflyng