Annotation Interface Table


The annotation to configure the mapping from a class to a database table.
Author:
Kazuki Shimizu, Bastian Wilhelm, Mikhail Polivakha, Mark Paluch
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The table name.
    Name of the schema (or user, for example in case of Oracle), in which this table resides in The behavior is the following:
    If the schema() 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 in value().
    The table name.
  • Element Details

    • value

      @AliasFor("name") String value
      The table name. The attribute supports value expressions to dynamically obtain the table name on a per-operation basis. Expressions returning a String are sanitized prior usage. Expressions can also return a SqlIdentifier directly that is used as-is without further sanitization.
      Default:
      ""
    • name

      @AliasFor("value") String name
      The table name. The attribute supports value expressions to dynamically obtain the table name on a per-operation basis. Expressions returning a String are sanitized prior usage. Expressions can also return a SqlIdentifier directly that is used as-is without further sanitization.
      Default:
      ""
    • schema

      String schema
      Name of the schema (or user, for example in case of Oracle), in which this table resides in The behavior is the following:
      If the schema() 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 in value().
      If the schema() is not specified, then spring data will assume the default schema, The default schema itself can be provided by the means of NamingStrategy.getSchema(). The attribute supports value expressions to dynamically obtain the schema name on a per-operation basis. Expressions returning a String are sanitized prior usage. Expressions can also return a SqlIdentifier directly that is used as-is without further sanitization.
      Default:
      ""