This issue started at Spring Boot issue tracker, https://github.com/spring-projects/spring-boot/issues/18671
Running DemoApplicationTests with Spring Boot 2.2.0 + Hibernate 5.4.4
Running same test with 2.2.0 + 5.4.5
The difference is that the TenantSchemaResolver is not called before the transaction initializes in 2.2.0 + 5.4.5
The reason mentioned on github is an improvement made in 5.4.5, https://hibernate.atlassian.net/browse/HHH-13565
What I would like to have is a transaction that is rolled back, which I have in 5.4.4, but being able to reach a tenant schema.
Spring Boot 2.2.0 + Hibernate 5.4.4 / 5.4.5