Description
Currently, bean validation is triggered via custom AOP interceptor [1] on save() method of DAO classes.
However, this could be changed to happen in a JPA entity listener[2], resulting in more widespread and robust control; moreover, some dependency (namely AspectJ) could be cut.
[1] https://svn.apache.org/repos/asf/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/validation/entity/EntityValidationInterceptor.java
[2] http://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/jpa_overview_pc_callbacks.html#jpa_overview_entity_listeners_using