@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface TenantDiscriminatorColumn
TenantDiscriminatorColumns
,
Multitenant
,
MultitenantType
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
columnDefinition
(Optional) The SQL fragment that is used when generating the DDL
for the discriminator column.
|
java.lang.String |
contextProperty
(Optional) The name of the context property to apply to the
tenant discriminator column.
|
DiscriminatorType |
discriminatorType
(Optional) The type of object/column to use as a class discriminator.
|
int |
length
(Optional) The column length for String-based discriminator types.
|
java.lang.String |
name
(Optional) The name of column to be used for the tenant discriminator.
|
boolean |
primaryKey
Specifies that the tenant discriminator column is part of the primary
key of the tables.
|
java.lang.String |
table
(Optional) The name of the table that contains the column.
|
public abstract java.lang.String name
public abstract java.lang.String contextProperty
public abstract DiscriminatorType discriminatorType
DiscriminatorType.STRING
.public abstract java.lang.String columnDefinition
Defaults to the provider-generated SQL to create a column of the specified discriminator type.
public abstract int length
public abstract java.lang.String table
public abstract boolean primaryKey