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

    Details

    • Target Release:
    • Steps to Reproduce:
      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

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gbadner Gail Badner
              Reporter:
              stephen.fikes Stephen Fikes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: