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.

Can I change the property path in a ConstraintValidator for Method arguments?

If you are familiar with the Bean Validation Framework you know that you cannot get the name of a method …

java hibernate bean-validation jersey-2.0
Spring Boot JSR-303/349 configuration

In my Spring Boot 1.5.1 application I'm trying to configure support of JSR-303 / JSR-349 validation. I have added a following annotations @…

java spring spring-boot bean-validation jsr
Jersey/JAX-RS : How to cascade beans-validation recursively with @Valid automatically?

I am validating my POJOs in a REST resource endpoint in Jersey: public class Resource { @POST public Response post(@NotNull @…

java jersey jax-rs bean-validation
JSR 303 Bean Validation - Why on getter and not setter?

I don't understand why JSR 303 (bean validation) is for the getter methods and not setter? Isn't it more logical to …

bean-validation getter
How to validate 2 field with OR condition?

I want to validate two fields of a Request Class in manner that Either one field is valid OR another …

java spring bean-validation jsr
can I override a jsr-303 validation annotation

I have a test like below: public class TestSizeAnnotation { public static void main(String[] args) { System.out.println(Validation.buildDefaultValidatorFactory().…

java hibernate annotations bean-validation
JSR-303 validation groups define a default group

I have a bean that has a lot of fields annotated with JSR-303 validation annotations. There is a new requirement …

java spring validation bean-validation
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
Method Parameter Validation with JSR-303

Is JSR-303 also intended for method parameter validation? If so, is there any example on the web? The biggest challenge …

java spring bean-validation
Validate only if the field is not Null

I use JSR303 Spring Validation and I have the following; @Digits(fraction = 0, integer = 15) private String tpMobile; Validation says Must be …

java spring validation bean-validation jsr