Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DavideD opened this issue Jun 19, 2024 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers testing Improvements to test suite

Comments

@DavideD
Copy link
Member

DavideD commented Jun 19, 2024

See quarkusio/quarkus#41198

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

@flyinfish
Copy link

flyinfish commented Jul 18, 2024

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

@DavideD
Copy link
Member Author

DavideD commented Jul 19, 2024

Thanks for the info @flyinfish

@yrodiere
Copy link
Member

yrodiere commented Jul 19, 2024

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

@MarcelEdmundFranke
Copy link

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

@2707sukesh
Copy link

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

@DavideD
Copy link
Member Author

DavideD commented Nov 5, 2024

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 DavideD added testing Improvements to test suite and removed bug Something isn't working labels Nov 5, 2024
@DavideD DavideD added good first issue Good for newcomers enhancement New feature or request labels Dec 2, 2024
@DavideD DavideD changed the title HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance Dec 6, 2024
@DavideD DavideD added problem A limitation or source of discomfort and removed problem A limitation or source of discomfort labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers testing Improvements to test suite
Projects
None yet
Development

No branches or pull requests

5 participants