TenantSchemaResolver not called in integration test after upgrade from 5.4.4 to >=5.4.5

Description

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.

Environment

Spring Boot 2.2.0 + Hibernate 5.4.4 / 5.4.5

Status

Assignee

Sanne Grinovero

Reporter

Anders Bergquist

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Worked in

5.4.4

Components

Affects versions

Priority

Major
Configure