In a Spring 3 application, I\'m trying to implement multi-tenancy via Hibernate 4\'s native MultiTenantConnectionProvider and CurrentTenantIdentifierResolver. I see that the
Even though this might be an older topic, and the answer might be already taken care of. What I noticed is the following:
In your define the class CurrentTenantIdentifierResolverImpl:
public class CurrentTenantIdentifierResolverImpl implements CurrentTenantIdentifierResolver
But in your config you reference MultiTenantIdentifierResolverImpl:
com.afflatus.edu.thoth.context.MultiTenantIdentifierResolverImpl
Just pointing this out because I did the same mistake today, after that it all worked like a charm.