Module spring.data.relational
Annotation Interface Table
The annotation to configure the mapping from a class to a database table.
- Author:
- Kazuki Shimizu, Bastian Wilhelm, Mikhail Polivakha
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe table name.The table name.
-
Element Details
-
value
The table name. The attribute supports SpEL expressions to dynamically calculate the table name on a per-operation basis.- Default:
- ""
-
name
The table name. The attribute supports SpEL expressions to dynamically calculate the table name on a per-operation basis.- Default:
- ""
-
schema
String schemaName of the schema (or user, for example in case of oracle), in which this table resides in The behavior is the following:
If theschema()is specified, then it will be used as a schema of current table, i.e. as a prefix to the name of the table, which can be specified invalue().
If theschema()is not specified, then spring data will assume the default schema, The default schema itself can be provided by the means ofNamingStrategy.getSchema()- Default:
- ""
-