Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-506

PreRemove method callback is never called; PreUpdate is always called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.0.2, 1.1.0
    • None
    • None
    • Windows XP, JDK1.5, JDK6, PostgreSQL

    Description

      I am using EntityListeners to catch Insert, Update and Delete events. During my test case I notice that PreRemove method callback is never called. In the same time PreUpdate is always called whether Delete (em.remove()) or Insert is called.

      In my opinion Pre/Post Persist must be called on Insert operations. Pre/Post Update must be called on Update operations. Pre/Post Remove must be called on Delete operations.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              miro Miroslav Nachev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: