Top "Hibernate-validator" questions

Hibernate Validator is the reference implementation for JSR 380 - Bean Validation 2.0

Cross field validation with HibernateValidator displays no error messages

I'm validating two fields, "password" and "confirmPassword" on the form for equality using HibernateValidator as specified in this answer. The …

spring jsp spring-mvc bean-validation hibernate-validator
Autowiring a service into a validator

This example is a bit contrived; I've simplified it to remove extraneous details and to focus on the problem I …

spring validation hibernate-validator autowired spring-3
javax.validation.NotBlank missing validator

I have requirement that in common api module(multi module project) I can't use any kind of hibernate's validation annotations, …

java spring hibernate bean-validation hibernate-validator
Difference between @Max and @DecimalMax (and @Min and @DecimalMin)

What's the difference between @Max and @DecimalMax, and @Min and @DecimalMin in Hibernate Validator? Looking at the Javadocs, they seem …

hibernate hibernate-validator
How to validate that date in future in reference to another date?

I have following bean: class CampaignBeanDto { @Future Date startDate; Date endDate; ... } Obviously I that endDate should be after startDate. I …

java validation date spring-mvc hibernate-validator
Howto validate Collections in Maps

I have a problem with the @Valid annotation of JSR-303. The annotation works fine for normal lists or and sets, …

java validation hibernate-validator
Spring validation vs Hibernate validation using annotation

i am creating a demo application using spring mvc 3.0.I have to apply the validation over the screen.I searches …

spring validation spring-mvc hibernate-validator
Spring 3.1 Autowiring does not work inside custom constraint validator

I have an issue with bean autowiring inside a custom constraint validator. A constraint validator instance is not given using …

spring validation customvalidator hibernate-validator
Validation for generated JAXB Classes (JSR 303 / Spring)

I Generated domain objects from schema (request & response) using JAXB (maven-jaxb2-plugin) I would like add validations (notnull /empty) …

spring-mvc jaxb bean-validation hibernate-validator
What is the proper way to validate requests with Resteasy?

I use Resteasy in combination with Google Guice using Resteasy-Guice. I have been looking for ways to validate my request …

java jboss jax-rs resteasy hibernate-validator