| In
HHH-2772 Closed the check for non-driving table references got removed, but the sql generated for the table reference is wrong when comparing *ToOne relations.
FROM EntityA a
JOIN EntityB b ON a.owner = b.owner
will roughly result in something like
SELECT ...
FROM entity_table_a a
JOIN entity_table_b b ON owner_3 = b.owner_id
The owner_3 alias is the faulty alias generated for the non-driving table reference. |