I want to implement a Multi-Tenancy solution based on DISCRIMINATOR for a Model with several tenants based on common schemes - a common database scheme for all tenants.
Technological stack
- Hibernate 3 Global Filter (I can't use EclipseLink)
- Spring JPA Data - I want this because we already use this one and we cannot change it.
My questions
- How to achieve this: Spring JPA data does not support the GLOBAL filter, so I need to add a custom Spring JPA data repository, which can in turn apply a global filter for a solution based on DISCRIMINATOR?
- Is it possible to implement my requirement with Spring Data JPA + Hibernate 3?
spring-data-jpa hibernate multi-tenant discriminator
Ketan
source share