Add bean validation for entity classes
Files
24@@ -39,6 +39,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
@@ -120,6 +121,14 @@ public class ControllerExceptionHandler extends ResponseEntityExceptionHandler {
Validation is performed before entities are persisted using Hibernate Validator, the reference implementation for Bean Validation 2.0 (JSR 380).
Refs #23.