TransientObjectException merging a non-proxy association to a HibernateProxy

Description

I am trying to upgrade a JEE8 based project from Hibernate 5.4.3 to 5.4.4.

However, I experience some sort of regression related to "TransientObjectExceptions" between this two versions.

I have pushed a project to GitHub, which can reproduce the issue on a very small code-base:

https://github.com/rzo1/hibernate-orm-5.4.x-issue

Just change the hibernate-core version to 5.4.4 in the pom.xml and execute the JUnit test. hibernate-core 5.4.3 or below are working in this specific setup.

 

UPDATE:

Simplier test-case by @gbadner can be found here

Environment

Hibernate 5.4.4 on

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

Status

Assignee

Gail Badner

Reporter

rzo1

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure