Annotation Type TenantId


@Retention(RUNTIME) @Target(FIELD) public @interface TenantId
Marks a property as mapping to the "Tenant Id" when using Partition based multi-tenancy support.

TenantId properties are automatically considered - not null and insert only.

Ebean automatically populates the Tenant Id value via a CurrentTenantIdProvider implementation that is registered with Ebean via ServerConfig.