Annotation Type MultiTenant
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultiTenant
Extension annotation allowing for specifying a class as multitenant, meaning that it will have a surrogate column in its table storing the tenant id.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcolumnName of the multitenancy column in the table for this class.intcolumnLengthLength of the multitenancy column for this class.StringjdbcTypeJDBC Type of the multitenancy column in the table for this class.
-
-
-
Element Detail
-
column
String column
Name of the multitenancy column in the table for this class.- Returns:
- The multitenancy column name
- Default:
- "TENANT_ID"
-
-
-
jdbcType
String jdbcType
JDBC Type of the multitenancy column in the table for this class.- Returns:
- The multitenancy column JDBC Type
- Default:
- ""
-
-