| 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. |