@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface TenantId
The annotated field must be a member of an Entity annotated class.
The column mapped to the annotated field is included in WHERE clause in auto-generated SQL statements
@Entity
public class Employee {
...
@TenantId
String tenantId;
}