Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2423

Persisted callback and PublisherService#changedObjects are not called, instead appear as updates.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M3
    • 2.0.0-M4
    • Core
    • None

    Description

      Due to use of EntityUtil.isAttached(...) in the PersistenceSession5#enlistCreated... method, rather than checking our own Oid.  In this particular case they were not equivalent.

      Fix:

      • was able to simplify and remove some redundant code, using instead

      persistable.dnGetStateManager().isNew(persistable)

      as the mechanism to determine in preStore/postStore whether we are dealing within an insert or an update.

      Attachments

        Issue Links

          Activity

            People

              danhaywood Daniel Keir Haywood
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: