[
https://issues.apache.org/jira/browse/SYNCOPE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Chicchiriccò updated SYNCOPE-406:
-------------------------------------------
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
was:
Currently, bean validation is triggered via [custom AOP
interceptor|https://svn.apache.org/repos/asf/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/validation/entity/EntityValidationInterceptor.java]
on save() method of DAO classes.
However, this could be changed to happen in a [JPA entity
listener|http://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/jpa_overview_pc_callbacks.html#jpa_overview_entity_listeners_using],
resulting in more widespread and robust control; moreover, some dependency
(namely AspectJ) could be cut.
> Invoke bean validation via JPA listener
> ---------------------------------------
>
> Key: SYNCOPE-406
> URL: https://issues.apache.org/jira/browse/SYNCOPE-406
> Project: Syncope
> Issue Type: Improvement
> Components: core
> Reporter: Francesco Chicchiriccò
> Assignee: Francesco Chicchiriccò
> Fix For: 1.2.0
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira