Annotation Type TenantDiscriminatorColumn
-
@Target(TYPE) @Retention(RUNTIME) @Repeatable(TenantDiscriminatorColumns.class) public @interface TenantDiscriminatorColumn
Tenant discriminator column(s) are used with a SINGLE_TABLE multitenant strategy. Tenant discriminator column(s) are completely user specified and there is no limit on how many tenant discriminator columns an application can define (using the TenantDiscriminatorColumns annotation) Tenant discriminator column(s) can be specified at the Entity or MappedSuperclass level and must always be accompanied with a Multitenant(SINGLE_TABLE) specification. It is not sufficient to specify only tenant discriminator column(s).- See Also:
TenantDiscriminatorColumns,Multitenant,MultitenantType- Author:
- Guy Pelletier
- Since:
- EclipseLink 2.3
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnDefinition(Optional) The SQL fragment that is used when generating the DDL for the discriminator column.java.lang.StringcontextProperty(Optional) The name of the context property to apply to the tenant discriminator column.DiscriminatorTypediscriminatorType(Optional) The type of object/column to use as a class discriminator.intlength(Optional) The column length for String-based discriminator types.java.lang.Stringname(Optional) The name of column to be used for the tenant discriminator.booleanprimaryKeySpecifies that the tenant discriminator column is part of the primary key of the tables.java.lang.Stringtable(Optional) The name of the table that contains the column.
-
-
-
-
discriminatorType
DiscriminatorType discriminatorType
(Optional) The type of object/column to use as a class discriminator. Defaults toDiscriminatorType.STRING.- Default:
- javax.persistence.DiscriminatorType.STRING
-
-