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
- is duplicated by
-
JBEAP-16743 [GSS](7.2.z) HHH-11223 Initialize bytecode enhanced lazy to-one using a single SQL statement
- Closed
- cloned from
-
HHH-11223 Loading...