Annotation Type TenantId
Marks the String field that holds the tenant a row belongs to.
On the backend a managed session writes the current tenant into this field on every insert and adds it to the condition of every statement it issues for the entity: finds, criteria and JPQL queries, counts, bulk updates and deletes, and the update and delete of a single entity. A session with no current tenant refuses to touch the entity at all rather than read every tenant's rows. Native SQL is never rewritten.