Open NaveenRamu opened 3 months ago
If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. It would also help if the above works with plain hibernate without any spring data being involved.
Hi @christophstrobl,
Thank you for your quick response.
Please find the attached reproducible code for the problem schema-based-multi-tenancy.zip
API endpoint: http://localhost:8080/notes header: [ X-TenantID - tenant1]
Note: If I uncomment lines 14 to 16 in TenantIdentifierResolver.java class, the application will run without any errors, and the session will open with the default tenant.
Hi @christophstrobl , @spring-projects-issues Just wanted to check if you were able to reproduce the issue at your end using the standalone project provided by us? Kindly let us know if you need any other info from our end. We still have this issue open with us and waiting for any kind of technical assistance.
Hi,
I created a multi-tenancy application with Spring Boot and JPA. When TenantIdentifier is not returning any default tenant value then my application is failing with the below error.
` TenantContext.java
`
` TenantIdentifier.java
`
`PersistenceJpaConfigWithMultitenancy.java
`
` DataSourceBasedMultiTenantConnectionProviderImpl.java
`