Files

This is the parent project for a couple of examples demonstrating how to integrate Hibernates Multitenant feature with Spring Data JPA.

There are three modules for the three examples.

Each uses a different strategy to separate data by tenant:

1. Partition tables by tenant id.
2. Use a separate schema per tenant
3. Use a separate database per tenant.

_The contained projects are only examples how to use Hibernates Multitenant feature with Spring Data JPA.
For any real application a decision has to be made how to scope a tenant. Storing it in a singleton as in the examples is for most cases not an appropriate solution._