org.hibernate.HibernateException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web864

  • A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: ...
  • A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: ...
  • via Coderanch by Kumar N Krishna, 7 months ago
    A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: src.Parent.childSet
  • Stack trace

    • org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: ... at org.hibernate.engine.internal.Collections.processDereferencedCollection(Collections.java:114) at org.hibernate.engine.internal.Collections.processUnreachableCollection(Collections.java:67) at org.hibernate.event.internal.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:258) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:103) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago