Lazy properties are not updated on bytecode-enhanced entity if not all lazy properties (e.g. collections) are initialized

Description

If a bytecode-enhanced entity with a lazy field is updated, the update of that field is issued correctly only if all lazy properties are initialized, including e.g. collections.
This is what my test case shows: The lazy property longText is not updated unless the OneToMany collection children is loaded.

There have been two other issues describing this: (opened by Petras Petkus) and (opened by me). Both issues have been closed, but IMHO the problem is not fixed.

I'll be happy to verify this on trunc as soon as it's fixed, just let me know.

Environment

JPA, Java 8, Oracle/H2

Status

Assignee

Luis Barreiro

Reporter

Jörg Mattes

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.0.12

Affects versions

5.1.4
5.2.8

Priority

Major