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

PostCommitFilter is confused about changes made by Pre* listeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M4
    • None
    • None

    Description

      Given a Cayenne stack with:

      1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener object.
      2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction" is not used (i.e. PostCommitFilter is called inside TransactionFilter).

      Desired Behavior:

      All objects added, updated, deleted inside the listener should appear in the commit log the same way any normal objects do.

      Observed Behavior:

      Objects deleted and updated by the listeners are excluded from commit log. Objects added by the listeners are included in commit log, but their properties are not tracked.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: