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

Defer audit trail publishing until end of transaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-M7
    • 2.0.0-M8
    • None
    • None

    Description

      The current "light-weight" implementation (introduced in ISIS-2826) would seem to be a little too eager : when combined with the commandlog implementation - that flushes later on - i believe we are corrupting the internal UoW caches within EntityManager... it thinks that the id of AuditEntry's already persisted are being updated.

      The situation and error found is similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=333977.

      So instead, defer the actual publishing until the end, the same way that JDO works.  But still leverage the property change records that JPA provides. 

      Attachments

        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: