Top "Hibernate-validator" questions

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

Spring MVC 3 Validation - Unable to find a default provider

I get an error when trying to set up Spring MVC validation. javax.validation.ValidationException: Unable to find a default …

java validation spring spring-mvc hibernate-validator
How to check request parameter is not empty String in @RequestMapping params?

In my controller I have String parameter, containing some id, that should not be null of empty string. I'm wondering, …

java spring spring-mvc hibernate-validator spring-annotations
Validating double and float values using Hibernate Validator - bean validation

I'm looking for a way to validate a java.lang.Double field in the Spring command bean for its maximum …

spring validation spring-mvc bean-validation hibernate-validator
How to add custom error messages in Hibernate validator

I have a simple class like this, import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Length; public class …

hibernate-validator
Hibernate Validation of Collections of Primitives

I want to be able to do something like: @Email public List<String> getEmailAddresses() { return this.emailAddresses; } In …

java collections bean-validation hibernate-validator
Validate Mobile Number using Hibernate annotation

I have a entity called User and I want to validate a mobile number field The mobile number field is …

java bean-validation hibernate-validator phone-number
AbstractMethodError on deploying Spring 4.0 in Tomcat 6

I am getting below exception on deploying Spring 4.0.1 app in Tomcat 6.0.37: SEVERE: Exception sending context initialized event to listener instance …

spring tomcat tomcat6 hibernate-validator spring-4
How do I import javax.validation into my Java SE project?

I'm trying to add constraints checking, as described here How to specify the cardinality of a @OneToMany in EclipseLink/JPA

jpa jakarta-ee eclipselink hibernate-validator bean-validation
Hibernate - Error activating Bean Validation integration

I am trying to set up Hibernate. But when i try to create my Session Factory, with this code: Configuration …

java hibernate validation bean-validation hibernate-validator
hibernate unique key validation

I have a field, say, user_name, that should be unique in a table. What is the best way for …

java hibernate spring bean-validation hibernate-validator