Envers creates unnecessary audit records for unchanged BigDecimal values

Description

If an entity has an audited BigDecimal property and an unaudited property that is changed in an update, an audit record is created, even if the BigDecimal value has not changed.

This is due to the areEqual implementation in org.hibernate.internal.util.compare.EqualsHelper which simply calls the equals method instead of using "compareTo == 0" like the areEqual method in the org.hibernate.type.descriptor.java.BigDecimalTypeDescriptor

Environment

Windows, Wildfly 10.1.0.Final

Attachments

Assignee

Chris Cranford

Reporter

Thies Rubarth

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