Discrimator values in versioned entities in one to many relations could cause problems when deleting relation

Description

As discussed here: https://community.jboss.org/thread/1695?start=15&tstart=0 deleting a
reference between two classes using discrimator values in a one to many relation could result in an incorrect entity version on "one-side" that uses discriminator value of parent class.

Steps to reproduce: See attachhed testcase.

Environment

Hibernate-Envers Version 4.1.1, Oracle 11g / Test-DB

Status

Assignee

Chris Cranford

Reporter

HansM

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.10
4.1.1
5.1.0
5.2.1

Priority

Major
Configure