org.eclipse.persistence.annotations.TenantDiscriminatorColumns , org.eclipse.persistence.annotations.Multitenant , org.eclipse.persistence.annotations.MultitenantType
| Modifier and Type | Method and Description |
|---|---|
| public String | columnDefinition()
(Optional) The SQL fragment that is used when generating the DDL for the discriminator column. |
| public String | contextProperty()
(Optional) The name of the context property to apply to the tenant discriminator column. |
| public DiscriminatorType | |
| public int | |
| public String | |
| public boolean | primaryKey()
Specifies that the tenant discriminator column is part of the primary key of the tables. |
| public String |
| columnDefinition | back to summary |
|---|---|
| public String columnDefinition() (Optional) The SQL fragment that is used when generating the DDL for the discriminator column. Defaults to the provider-generated SQL to create a column of the specified discriminator type. | |
| contextProperty | back to summary |
|---|---|
| public String contextProperty() (Optional) The name of the context property to apply to the tenant discriminator column. | |
| discriminatorType | back to summary |
|---|---|
| public DiscriminatorType discriminatorType() (Optional) The type of object/column to use as a class discriminator.
Defaults to | |
| length | back to summary |
|---|---|
| public int length() (Optional) The column length for String-based discriminator types. Ignored for other discriminator types. | |
| name | back to summary |
|---|---|
| public String name() (Optional) The name of column to be used for the tenant discriminator. | |
| primaryKey | back to summary |
|---|---|
| public boolean primaryKey() Specifies that the tenant discriminator column is part of the primary key of the tables. | |
| table | back to summary |
|---|---|
| public String table() (Optional) The name of the table that contains the column. If absent the column is assumed to be in the primary table. | |