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.
Attachments
Issue Links
- duplicates
-
JBEAP-12947 [GSS](7.2.z) HHH-11223 Initialize bytecode enhanced lazy to-one using a single SQL statement
- Closed
- incorporates
-
HHH-11223 Loading...