Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-11459

Bytecode-enhanced Entity cannot be merged or refreshed

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      When I try to refresh managed bytecode-enhanced entity, I am getting an exception:

      Caused by: org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: org.hibernate.bugs.model.Person.details
      at org.hibernate.engine.internal.Collections.processDereferencedCollection(Collections.java:99)
      at org.hibernate.engine.internal.Collections.processUnreachableCollection(Collections.java:50)
      at org.hibernate.event.internal.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:243)
      at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:86)
      at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:38)
      at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1428)
      at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:484)
      at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3190)
      at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2404)

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: