Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-406

Invoke bean validation via JPA entity listener

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0-M1
    • Component/s: core
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              ilgrosso Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: