Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2276

PrePersist listener registered as PostPersist in LifecycleCallbackRegistry.addListener(Class<?>, LifecycleListener)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.B1
    • Component/s: Core Library
    • Labels:
      None

      Description

      Bug has been found in addListener(Class<?>, LifecycleListener) method, PrePersist listener registered as PostPersist:

      public void addListener(Class<?> entityClass, LifecycleListener listener) {
      // ...
          addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "prePersist");
          addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
      // ...
      }
      

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: