Bean « Default « JPA Q&A





1. How can I set default constraints on all my properties in hibernate validator    stackoverflow.com

I want to automatically put @Valid constraints on all my properties. Example:

public class Adult extends MyBeanValidationAbstractClass{
    @Min(18)
    public Integer age;
    @NotBlank
   ...