First, we need to download an implementation for bean validation JSR. We use hibernate-validator
for this, so we must include
something like the following inside POM (see also http://hibernate.org/validator/documentation/getting-started/):
<!-- Bean validation -->
<dependency>
<groupId>org.hibernate</groupId>