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

Description

This issue is basically identical to https://hibernate.atlassian.net/browse/HHH-10866#icft=HHH-10866 (which is marked as duplicate and closed, but in my humble opinion https://hibernate.atlassian.net/browse/HHH-10866#icft=HHH-10866 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, https://hibernate.atlassian.net/browse/HHH-10866#icft=HHH-10866 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.

Attachments

1
  • 05 Oct 2016, 10:33 AM

Activity

Show:

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

@Gail Badner, yes it not fixed yet, I opened https://hibernate.atlassian.net/browse/HHH-11506#icft=HHH-11506 and attached the same test case (made it runnable for 5.1.4).

Former user February 16, 2017 at 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 January 6, 2017 at 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.

Jörg Mattes December 8, 2016 at 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 December 5, 2016 at 1:26 PM

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

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

Created October 5, 2016 at 10:34 AM
Updated March 2, 2017 at 7:21 PM
Resolved November 22, 2016 at 12:53 AM