hibernate-reactive icon indicating copy to clipboard operation
hibernate-reactive copied to clipboard

HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance

Open DavideD opened this issue 1 year ago • 6 comments
trafficstars

See https://github.com/quarkusio/quarkus/issues/41198

UPDATE: This is working now in Quarkus, but we should add a test to keep track of it

DavideD avatar Jun 19 '24 07:06 DavideD

does not seem explicitly problem in hibernate-reactive, problem occurs in traditional-hibernate too

io.quarkus:quarkus-hibernate-orm:3.12.2
org.hibernate.orm:hibernate-core:6.5.2.Final

flyinfish avatar Jul 18 '24 15:07 flyinfish

Thanks for the info @flyinfish

DavideD avatar Jul 19 '24 07:07 DavideD

Similar issue on Hibernate ORM -- perhaps the same root cause, perhaps not -- https://hibernate.atlassian.net/browse/HHH-18389. On Quarkus: https://github.com/quarkusio/quarkus/issues/7462

yrodiere avatar Jul 19 '24 07:07 yrodiere

I am experiencing a comparable or identical issue. Following the upgrade from Spring Boot 3.2.x to 3.3.x, I encountered the following problem: org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance.

Hibernate ORM core version 6.5.2.Final

MarcelEdmundFranke avatar Jul 23 '24 13:07 MarcelEdmundFranke

Can some once confirm if any code changes are required on this , i am willing to work on this feature .

2707sukesh avatar Jul 31 '24 11:07 2707sukesh

It seems this is working now with the latest Quarkus, but we should add a test in Hibernate Reactive to keep track of it.

DavideD avatar Nov 05 '24 08:11 DavideD