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

Build-time instrumentation breaks lazy="proxy"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2
    • Fix versions: 3.2.0.cr4
    • Components: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      I have a mapping that contains a many-to-one lazy="proxy".
      This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load

      Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks.
      Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object)

      This works fine in hibernate-3.1.2.

      This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881

      Please let me know if more info or a test case is needed.

        Attachments

        1. 312Document.class
          5 kB
        2. Document.class
          5 kB
        3. HHH-1740.diff
          3 kB
        4. Hibernate3-Branch_3_2.diff
          4 kB
        5. TestLazyManyToOne-Branch_3_2.diff
          3 kB

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: