PropertyNotFoundException with Hibernate Envers when using referencedColumn in @JoinColumn and bidirectional @OneTomany

Description

We get the following error message when persisting/updating/deleting associations:

We have tracked down the error to:

Specifically the line:

To replicate the error:

Customer.java

Account.java
Device.java
Scenario

The problem stems from the fact that the property is not correctly identified in the PropertyData field:

If the annotations are provided on the accessors, we still get failure:

Environment

Hibernate Versions: 4.3.10, 4.3.11, 5.0.2
Databases:

  • H2: 1.4.190

  • PostgrSQL: 9.4.4

  • MS SQLServer

Assignee

Chris Cranford

Reporter

Fuzail Sarang

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure