Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12947

[GSS](7.2.z) HHH-11223 Initialize bytecode enhanced lazy to-one using a single SQL statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.0.CR1
    • Hibernate
    • None

    Description

      Currently, 2 SQL statements are executed when a bytecode enhanced lazy to-one is initialized.

      For example, suppose Order#customer is a many-to-one association:
      1) Loads the FK value (select o.customer_id from orders o where o.id = ?)
      2) Loads the related state (select ... from customers c where c.id = ?)

      This issue involves combining the 2 SQL statements into a single statement using a join.
      https://hibernate.atlassian.net/browse/HHH-11223

      Attachments

        Issue Links

          Activity

            People

              gbadner@redhat.com Gail Badner (Inactive)
              rhn-support-lakagwu Lami Akagwu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: