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

Activity

Show:
Jörg Mattes
December 5, 2016, 1:26 PM

Hi Steve,
that's why I mentioned that I had to add:
dependency to <artifactId>hibernate-entitymanager</artifactId>. Then it runs.

Jörg Mattes
December 8, 2016, 12:52 AM

Hi Steve,
could you run the test? Here's the complete snippet for the pom.xml that I had to add:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${version.org.hibernate}</version>
</dependency>

Jörg Mattes
January 6, 2017, 10:44 AM

Sorry to bother, but still IMHO this bug is not fixed, and I think it should be reopened.
To run with 5.1.3, the above dependency to hibernate-entitymanger needs to be included. I can also upload the testcase ready-to-run with 5.1.3.

Gail Badner
February 16, 2017, 6:31 PM

, if you are still having an issue with this, then please open a new Jira and attach your test case.

Jörg Mattes
February 20, 2017, 10:26 PM

@Gail Badner, yes it not fixed yet, I opened and attached the same test case (made it runnable for 5.1.4).

Assignee

Steve Ebersole

Reporter

Jörg Mattes

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Critical
Configure