[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6753) Envers WorkUnits: Problems with merge

Lukasz Antoniak (JIRA) noreply at atlassian.com
Fri Oct 28 18:54:22 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44198#comment-44198 ] 

Lukasz Antoniak commented on HHH-6753:
--------------------------------------

Pull request submitted: https://github.com/hibernate/hibernate-core/pull/204

> Envers WorkUnits: Problems with merge
> -------------------------------------
>
>                 Key: HHH-6753
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6753
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.6.2
>            Reporter: S M
>            Assignee: Lukasz Antoniak
>
> 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?
> http://community.jboss.org/thread/173930

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list