Top "Bean-validation" questions

Bean Validation, previously commonly called just "JSR-303", is an annotation based validation framework for javabean properties and parameters of arbitrary methods.

Initializing Spring bean from static method from another Class?

I was trying to create Hibernate Validator bean, and run into this problem creating a bean from static factory method …

java spring bean-validation applicationcontext
Adding error message to Spring 3 DataBinder for custom object fields

I'm trying to manually add an individual email error message to my model but nothing is displaying in the view. …

spring-mvc bean-validation
Bean Validation constraint(s) violated while executing Automatic Bean Validation on callback event:'prePersist'

I would like to store birthdate so I chose date at MySQL, when I create my entities based in my …

jpa jpa-2.0 bean-validation
JSR 303: How to Validate a Collection of annotated objects?

Is it possible to validate a collection of objects in JSR 303 - Jave Bean Validation where the collection itself does …

java bean-validation hibernate-validator jsr
Hibernate Validator - @Length - How to specify separate message for min and max?

I am using Hibernate validator for form validation in my web-app. I am using the @Length annotation for my String …

java bean-validation hibernate-validator
Customize spring validation error

I want customize the spring validation error for @NotNull @Length(max = 80) private String email; but I'm unable to do it. …

spring validation customization bean-validation
Hibernate @NotEmpty annotation equivalent in Javax.package or alternative

Is there a way to implement @NotEmpty hibernate validation without writing custom validation? javax.validation package does not contain this …

java validation annotations bean-validation notnull
Unique constraint with JPA and Bean Validation

I'd like to have a @Unique constraint with Bean Validation, but that is not provided by the standard. If I …

java validation jpa unique bean-validation
JPA @Size annotation for BigDecimal

How do I use the @Size annotation for MySQL DECIMAL(x,y) columns? I'm using BigDecimal, but when I try …

java mysql jpa bean-validation
How to disable Hibernate validation in a Spring Boot project

I have a spring boot project that has a CrudRepository, an Entity and a Controller. I am basically trying to …

java hibernate jpa spring-boot bean-validation