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.

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
Is there an implementation of JSR-303 (bean validation) available?

I know there are non-standard frameworks such as commons-validator, and hibernate validator. I wanted to know if someone knows an …

java validation bean-validation
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
How do I validate that the @RequestParams are not empty?

I have a calculator service that gets the operation type, num1 and num2 from the user. I need to validate …

java spring-boot junit4 bean-validation jsr
Spring Bean Validation @Valid handling

I have created a Spring MVC REST service using Bean Validation 1.2 with the following method: @RequestMapping(value = "/valid") public String …

java spring-mvc bean-validation
JPA - No validator could be found for type: enum

I have an entity class which uses an enum type for one of the properties, and I am getting the …

java jpa bean-validation
Get field name when javax.validation.ConstraintViolationException is thrown

When the PathVariable 'name' doesn't pass validation a javax.validation.ConstraintViolationException is thrown. Is there a way to retrieve the …

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

I created an EJB Session facade in my Netbeans 7 for saving my entity. I have a manytoone mapping between my …

jpa jakarta-ee bean-validation
Spring validation for list of accepted string values

Is there a validation annotation for Spring that will do something like: @ValidString({"US", "GB", "CA"}) final String country; and …

java spring validation bean-validation