Spring-Data JPA with Multi-Tenancy Hibernate
I am trying to get Spring-Data JPA working with Hibernate with a custom MultiTenantConnectionProvider. Everything in my configuration below seems to work. My MultiTenantConnectionProviderImpl class gets called each time I try to call a Repository method. The main problem is that there is no way to provide a tenant identifier. The Repository interfaces provided by Spring-Data take care of getting the Hibernate Session. Is there any way to provide Spring-Data the tenant identifier? Or is there somewhere where we can intercept the creation of the Hibernate Session so we can appropriately call