bowsie
bowsie

Reputation: 1315

Java Validation Frameworks

I once came across a validation framework for java, where you wrote one method that protected the integrity of the data-type and any CRUD operations on that data-type automatically called this method.

Does anyone know what this framework is? I simply want to avoid repetitive validation on every CRUD method attached to a data-type.

Upvotes: 11

Views: 63352

Answers (5)

duffymo
duffymo

Reputation: 308733

Apache Commons has a validation framework.

Upvotes: 7

Albert T. Wong
Albert T. Wong

Reputation: 612

Here's a huge list of Java Validation Libraries / Frameworks - http://java-source.net/open-source/validation

Upvotes: 13

twelve17
twelve17

Reputation: 718

Hibernate Validator, per adref's answer, is an implementation of JSR-303. Here's a helpful article to get you started if you are interested:

http://java.dzone.com/articles/bean-validation-and-jsr-303

Upvotes: 2

andref
andref

Reputation: 4492

Are you using Hibernate for persistence? If you are, there is Hibernate Validator.

Upvotes: 5

duffymo
duffymo

Reputation: 308733

Spring has a very nice validation and binding API.

Upvotes: 1

Related Questions