Annotation Interface Table


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Table
Annotation for a SpannerPersistentEntity that allows specifying a custom table name, instead of deriving it from the entity's class name.
Since:
1.1
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the table in Spanner, which can differ from the name of the class which it annotates.
  • Element Details

    • name

      String name
      The name of the table in Spanner, which can differ from the name of the class which it annotates.
      Returns:
      The name of the table
      Default:
      ""