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

Lazy properties are not updated on bytecode-enhanced entity if not all lazy properties (e.g. collections) are initialized

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Worked in:
    • backPortable:
      Backport?
    • Last commented by a user?:
      true

      Description

      If a bytecode-enhanced entity with a lazy field is updated, the update of that field is issued correctly only if all lazy properties are initialized, including e.g. collections.
      This is what my test case shows: The lazy property longText is not updated unless the OneToMany collection children is loaded.

      There have been two other issues describing this: HHH-10866 Closed (opened by Petras Petkus) and HHH-11155 Closed (opened by me). Both issues have been closed, but IMHO the problem is not fixed.

      I'll be happy to verify this on trunc as soon as it's fixed, just let me know.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: