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

SINGLE_TABLE associated entity query missing restriction of DiscriminatorColumn - reverting HHH-11375

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.9
    • Fix Version/s: 5.2.10
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      Reverting HHH-11375 Closed .

      The changes introduced by HHH-11375 Closed force the use of the discriminator column for every query involving a one-to-many relation.
      This is not necessary for most of the cases, in situation like the one described in HHH-11375 Closed the solution is to add the config value

      hibernate.discriminator.force_in_select=true
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                dreab8 Andrea Boriero
                Reporter:
                dreab8 Andrea Boriero
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: