Envers audits unchanged objects for a certain use case

Description

Envers creates audit records for unchanged objects when the entity is SelectBeforeUpdate and has JoinColumn(updatable=false)

Environment

None

Activity

Show:
Taro App
August 19, 2016, 3:19 AM
Edited

Excerpts from the test case:

After the update of unmodified Book object, there are two revisions for the object.

Chris Cranford
August 19, 2016, 1:45 PM

Thanks for the test case.

Chris Cranford
August 19, 2016, 3:48 PM

It may be worth noting you can workaround the issue with:

This is only applicable starting with Hibernate 5.2 with the merging of Hibernate EntityManager into Core.

Chris Cranford
August 19, 2016, 11:56 PM

The fix presented in resolves this particular issue. I'll be pushing the fix as a part of and will include an Enver's test case for this issue.

Vlad Mihalcea
September 21, 2016, 1:42 PM

Resolved by using this Pull Request.

Assignee

Chris Cranford

Reporter

Taro App

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure