Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: jpa
    • Labels:
      None

      Description

      This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.

        Issue Links

          Activity

          Jeremy Bauer created issue -
          Jeremy Bauer made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          Jeremy Bauer added a comment -

          Committed rev 1 under revision 776009. This rev provides a means for lifecycle-based validation by extending the LifecycleEventManager with a ValidatingLifecycleEventManager. The validating version uses a pluggable validation implementation to determine if validation should take place and then to validate the entity. A simple JSR-303 based validation impl wrapper is also included. The config code to enable validation (use the validating lifecycle event manager and plug in the validation impl) will be added under a separate item.

          Show
          Jeremy Bauer added a comment - Committed rev 1 under revision 776009. This rev provides a means for lifecycle-based validation by extending the LifecycleEventManager with a ValidatingLifecycleEventManager. The validating version uses a pluggable validation implementation to determine if validation should take place and then to validate the entity. A simple JSR-303 based validation impl wrapper is also included. The config code to enable validation (use the validating lifecycle event manager and plug in the validation impl) will be added under a separate item.
          Donald Woods made changes -
          Link This issue blocks OPENJPA-1102 [ OPENJPA-1102 ]
          Donald Woods made changes -
          Link This issue is depended upon by OPENJPA-1111 [ OPENJPA-1111 ]
          Donald Woods made changes -
          Link This issue relates to OPENJPA-1114 [ OPENJPA-1114 ]
          Jeremy Bauer made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 2.0.0 [ 12313483 ]
          Resolution Fixed [ 1 ]
          Hide
          Pinaki Poddar added a comment -

          Is the following a bug in ValidatingLifeCycleManager and its correction?

          @@ -75,7 +74,7 @@

          • return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
            + return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) ||

          @@ -84,7 +83,7 @@

          • return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) ||
            + return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
          Show
          Pinaki Poddar added a comment - Is the following a bug in ValidatingLifeCycleManager and its correction? @@ -75,7 +74,7 @@ return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) || + return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) || @@ -84,7 +83,7 @@ return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) || + return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
          Hide
          Pinaki Poddar added a comment -

          1. ValidatingLifeCycleEventManager : The JavaDoc for constructor is incorrect.

          2. ValidatingLifeCycleEventManager : Carries some auto-generated method headers

          3. Validator interface JavaDoc is incorrect.

          Show
          Pinaki Poddar added a comment - 1. ValidatingLifeCycleEventManager : The JavaDoc for constructor is incorrect. 2. ValidatingLifeCycleEventManager : Carries some auto-generated method headers 3. Validator interface JavaDoc is incorrect.
          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue blocks OPENJPA-1102 [ OPENJPA-1102 ]
          Gavin made changes -
          Link This issue is depended upon by OPENJPA-1102 [ OPENJPA-1102 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          5s 1 Jeremy Bauer 06/May/09 20:38
          In Progress In Progress Resolved Resolved
          27d 8h 20m 1 Jeremy Bauer 03/Jun/09 04:58
          Resolved Resolved Closed Closed
          279d 14h 32m 1 Donald Woods 09/Mar/10 18:31

            People

            • Assignee:
              Jeremy Bauer
              Reporter:
              Jeremy Bauer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Development