[hibernate/hibernate-orm] f5be95: HHH-16438 - Add test for issue where left outer jo...
by Jan Schatteman
Branch: refs/heads/6.2
Home: https://github.com/hibernate/hibernate-orm
Commit: f5be9556d7dfdefd744ad9a361930faf82db402d
https://github.com/hibernate/hibernate-orm/commit/f5be9556d7dfdefd744ad9a...
Author: Jan Schatteman <jschatte(a)redhat.com>
Date: 2023-04-19 (Wed, 19 Apr 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
A hibernate-core/src/test/java/org/hibernate/orm/test/join/JoinWithSingleTableInheritanceTest.java
Log Message:
-----------
HHH-16438 - Add test for issue where left outer joins do not work with single table polymorphic entities because of the discriminator in the where clause
Signed-off-by: Jan Schatteman <jschatte(a)redhat.com>
HHH-16438 - fix for issue
- move the discriminator condition from the where clause to the join clause
- add another test to JoinWithSingleTableInheritanceTest
HHH-16438 - Apply some suggestions from Christian's code review
Co-authored-by: Christian Beikov <christian.beikov(a)gmail.com>
1 year, 7 months