AuditException with @OneToOne-mappedBy on the owned side and @OneToOne with @PrimaryKeyJoinColumn on the owning

Description

Similar as HHH-6825.

Query for both entities fails with exception
Envers test case attached.
1 error - Variable owningReferencePropertyName is null for owned side of relatioship.
2 error - Owning side of relationship processed with Envers as OneToOneNotOwning too.

Discussion - http://community.jboss.org/thread/175823?start=0&tstart=0

Environment

test case in hibernate build envieronment.

Assignee

Chris Cranford

Reporter

Vyacheslav

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure