001package io.ebean.annotation; 002 003import java.lang.annotation.ElementType; 004import java.lang.annotation.Retention; 005import java.lang.annotation.RetentionPolicy; 006import java.lang.annotation.Target; 007 008/** 009 * Marks a property as mapping to the "Tenant Id" when using Partition based multi-tenancy support. 010 * <p> 011 * TenantId properties are automatically considered - not null and insert only. 012 * </p> 013 * <p> 014 * Ebean automatically populates the Tenant Id value via a CurrentTenantIdProvider implementation that is 015 * registered with Ebean via ServerConfig. 016 * </p> 017 */ 018@Retention(RetentionPolicy.RUNTIME) 019@Target(ElementType.FIELD) 020public @interface TenantId { 021 022}