We're updating the issue view to help you get more done. 

Lazy properties are not updated if not all lazy properties (e.g. collections) are initialized

Description

This issue is basically identical to (which is marked as duplicate and closed, but in my humble opinion is different from HHH-10865), and in fact on 5.2.2 my testcase fails, although it was fixed in 5.2.1.

I could not upload my test-case to HHH-10866, so I open this issue.

As far as I understand it, describes it very well: Update only occurs if all lazy properties are initialized, including e.g. collections.
This is what my self-contained test case shows: The lazy property longText is not updated unless the OneToMany collection children is loaded.

Environment

JPA, Java 8, Oracle/H2

Status

Assignee

Steve Ebersole

Reporter

Jörg Mattes

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Fix versions

Affects versions

5.1.2
5.2.2
5.2.3
5.1.1

Priority

Critical