Vojtěch Knyttl (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2VmY2M0OWVi...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16272?atlOrigin=eyJpIjoiM2VmY2...
) HHH-16272 (
https://hibernate.atlassian.net/browse/HHH-16272?atlOrigin=eyJpIjoiM2VmY2...
) Hibernate 6 fails to refresh entity with complex @OneToMany relationship (
https://hibernate.atlassian.net/browse/HHH-16272?atlOrigin=eyJpIjoiM2VmY2...
)
Issue Type: Bug Affects Versions: 6.1.7 Assignee: Unassigned Components: hibernate-core
Created: 08/Mar/2023 12:49 PM Environment: Any, see attached Github repository. Priority:
Blocker Reporter: Vojtěch Knyttl (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We are having issues with complex @OneToMany relationships. See attached repository, which
demonstrates the problem:
https://github.com/knyttl/Hibernate5vs6Test (
https://github.com/knyttl/Hibernate5vs6Test
)
The repo has HIbernate 5 in pom.xml, so when running the test as:
```bash
mvn test -Dhibernate.server=
{my-server}
-Dhibernate.database=
{my-database}
-Dhibernate.password=
{my-password}
-Dhibernate.user=
{db-user}
```
You will see the test is * *correctly passing* *, logs here:
https://gist.github.com/knyttl/ac8010f853bc22b1a0176e856cad0a3e (
https://gist.github.com/knyttl/ac8010f853bc22b1a0176e856cad0a3e )
Now please uncomment Hibernate 6 in `pom.xml` and run the test again.
The test will now fail with this log:
https://gist.github.com/knyttl/292aeb613fd10b9c9fbf8d7b5d7e2073 (
https://gist.github.com/knyttl/292aeb613fd10b9c9fbf8d7b5d7e2073 )
(
https://hibernate.atlassian.net/browse/HHH-16272#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16272#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:c17c655 )