2 Replies Latest reply on Oct 21, 2011 9:23 AM by S M

    Envers WorkUnits: Problems with merge

    S M Newbie

      Hi all,


      using Envers 3.6.2., I'm having the following problem:


      As Hibernate triggers a commit, the Envers-Listener notices a DELETE followed by an ADD for the same entity (that's how my code is working...). I'd expect that Envers creates an UPDATE-Revision for this entity. But the AuditProcess tries to merge both actions and ends up with no action. Hence, no revision is written into the revision table. This is due to the fact that DelWorkUnit.merge(AddWorkUnit) returns NULL.


      So why is that? Why is this method not returning a new ModWorkUnit?


      Thanks a lot for your help!