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

Associated collection deleted after loading in byte-enhanced entities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.2.8, 5.1.5, 5.2.9
    • Fix Version/s: None
    • Labels:
    • Environment:
      Spring Boot 1.3.8, Spring JPA, Hibernate 4.1.5
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      I use load-time weaving to enhance my entities and in the latest version of 5.1 (5.1.5) I noticed that some data was being lost due to hibernate issuing a collection deletion after a simple collection getter usage. Problematic in this specific case as it was user permissions.
      I encountered the same problem some versions ago but it got fixed in the meantime, sadly I don't remember which one exactly though.

      I tried to distill my use case as much as I could and attached a test case for it. The test still uses spring boot but hope it helps nevertheless.

      edit - tested with hibernate 5.2, last working version was 5.2.7 (updated affected versions)

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: