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

JOIN FETCH does not work properly with enhanced entities

    Details

    • Type: Bug
    • Status: Awaiting Response
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 5.3.7
    • Fix versions: 5.4-backlog
    • Components: bytecode-enhancement
    • Labels:
    • Environment:
      java version "1.8.0_191"
      Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      I've prepared a reproducer in a repository on github:

      https://github.com/fprochazka/hibernate-enhancement-unexpected-queries-bug

      I don't understand hibernate internals enough to dig deeper, but this is clearly unwanted, because when I've just enabled it on our project, one of my API endpoints went from 10 queries to 816 queries and I gave up on examining the rest of them.

      I've even tried to annotated all of toOne relations in our project with different combinations of @LazyToOne (with different LazyToOneOption) and @LazyGroup in the hopes that I've just misunderstood the feature, but it just went from broken (because of 100x times more queries which is unacceptable) to completely broken (where the data weren't even loading properly).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Feedback Requested: