Issue Type: Bug Bug
Assignee: Unassigned
Components: envers
Created: 11/Jan/13 9:01 AM
Description:

I flushed entitymanager twice (using autoflush) in one transaction.
First flush ended in ModWorkUnit with 3 modified attribute flags set to true
Second flush ended in ModWorkUnit wih 1 modified attribute flag set to true.

Merge of these two ModWorkUnits ended in ModWorkUnit with corrent entity, but only with 1 modified attribute flag set to true.

I suppose this is because this method:

public AuditWorkUnit merge(ModWorkUnit second) { return second; }

I thing mod flags should be set again by comparing second ModWorkUnit with state of entity before first ModWorkUnit.

Project: Hibernate ORM
Priority: Major Major
Reporter: Michal Kurtak
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira