We are using a single address table with InheritanceType.SINGLE_TABLE and a simple discriminator value:
We are using a query that selects a single case, the customer assigned to the case and the addresses of the customer:
When we used Spring Boot 2.x, the generated SQL contained joins like this:
After switching to Spring Boot 3.x / Hibernate 6.x, the SQL looks like this - the condition on the discriminator column is missing:
An exception is thrown:
|