debop / hibernate-redis

hibernate 2nd level cache privder using redis
Apache License 2.0
357 stars 184 forks source link

Multitenancy with Spring-Data-JPA #119

Open MurthyKVN opened 6 years ago

MurthyKVN commented 6 years ago

Hi

we are using hibernate-redis-2.4.0 with Hibernate 5.0.12 and Spring-Data-JPA 1.11. We have enabled multitenancy with schema approach. We could see entries in redis server with keys containing tenantId and primary-key of the entity.

Now, while accessing the application same entity is being loaded for both tenants. We have observed from logs that the tenantId is being resolved properly in both the cases.

Anybody faced this kind of issue.

Please help