Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16065

[GSS](7.2.z) HHH-13129: Cascaded merge fails for detached bytecode-enhanced entity with uninitialized ToOne

XMLWordPrintable

    • Hide
      • Enabling bytecode enhancement with <enableLazyInitialization>true</enableLazyInitialization>
      • Using @LazyToOne(LazyToOneOption.NO_PROXY) on a ManyToOne association
      • After detaching the entity, merge fails if the association was not initialized before detachment
      Show
      Enabling bytecode enhancement with <enableLazyInitialization>true</enableLazyInitialization> Using @LazyToOne(LazyToOneOption.NO_PROXY) on a ManyToOne association After detaching the entity, merge fails if the association was not initialized before detachment

      When merging a detached entity for which the association has not yet been initialized, encountering

      ... org.hibernate.LazyInitializationException: Unable to perform requested lazy initialization [my_entity_here] - no session and settings disallow loading outside the Session

              gbadner@redhat.com Gail Badner (Inactive)
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: