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.

Bean Validation Message with dynamic parameter

I am getting started with bean validation, and I'm trying to compose a constraint. My constraint is to validate a …

validation jakarta-ee message bean-validation
Spring boot, how to use @Valid with List<T>

I am trying to put validation to a Spring Boot project. So I put @NotNull annotation to Entity fields. In …

java spring spring-mvc bean-validation
How to test a Validator which implements ConstraintValidator in java?

I have an "AllowedValuesValidator.java" class: public class AllowedValuesValidator implements ConstraintValidator<AllowedValues, String> { String[] values; String defaultValue; @Override …

java validation testng bean-validation custom-validators
error: No validator could be found for type: java.time.LocalDate

I'm working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the @Past …

java jakarta-ee bean-validation java-ee-7 hibernate-validator
Why do bean validation Min/Max constraints not support the double type?

Could somebody please explain to me why the JPA supports the double type as a field type, but the bean …

java constraints precision bean-validation
How to I get Spring-Data-MongoDB to validate my objects?

I have a very simple Spring Boot application that uses Spring-Data-Mongodb All I want to do is set a JSR-303 …

mongodb bean-validation spring-data-mongodb spring-boot
Custom Messages in Bean Validation using Spring’s Validator interface

I'm using Spring Boot 1.3.5 with Rest Controllers and everything is working fine. I am also using Spring's validation sample techniques …

java spring spring-boot bean-validation spring-validator
Not showing error messages when validated using @valid(JSR-303) in Spring MVC

I have specified <mvc:annotation-driven /> in dispatcher-servlet. I am not using @InitBinder. And I am using @valid annotation …

java spring spring-mvc bean-validation
Bean Validation's resourcebundle parameterization possibility in JSF 2?

Using the resourcebundle with BV in JSF 2 would look something like this : public class UserBean { @Size(min=13, message="{creditcard.length}") …

java jsf jsf-2 resourcebundle bean-validation
Is there a standard way to enable JSR 303 Bean Validation using annotated method arguments

I've been looking a around for a while now with no luck. I'n not using Spring MVC but still want …

java spring aop bean-validation hibernate-validator