The custom name of the column in the Spanner table, which can differ from the name of the field
which it annotates.
the name of the column in the Spanner table
public abstract long spannerTypeMaxLength
The maximum length of the column in Cloud Spanner terms. For example, for STRING columns this
refers to the number of characters. For BYTES columns this refers to the number of bytes. This
setting is only used when generating schema from an entity class. A setting of less than 0
indicates an unlimited maximum length.
the maximum length for the column
public abstract boolean nullable
If the column's schema should be NOT NULL when generating a schema based on an entity class.
false if the column should be NOT NULL in generated DDL. true
Optionally directly specify the column type in Cloud Spanner. For ARRAY columns this refers to
type of the item the array holds. If this is not specified then it is inferred from the Java
This setting takes effect when the entity in which it appears is used to generate schema DDL.
If true, then the column corresponding to the annotated property will be auto-populated
with the latest Cloud Spanner TrueTime commit timestamp of the row. false for all other
usage and columns.
true for auto-populating commit timestamp. false otherwise.