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.
JPA, Java 8, Oracle/H2
that's why I mentioned that I had to add:
dependency to <artifactId>hibernate-entitymanager</artifactId>. Then it runs.
could you run the test? Here's the complete snippet for the pom.xml that I had to add:
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.
, if you are still having an issue with this, then please open a new Jira and attach your test case.
@Gail Badner, yes it not fixed yet, I opened and attached the same test case (made it runnable for 5.1.4).