com.datastax.driver.mapping.annotations

## Annotation Type Column

• @Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Column
Annotation that allows to specify the name of the CQL column to which the field should be mapped.

Note that this annotation is generally optional in the sense that any field of a class annotated by Table will be mapped by default to a column having the same name than this field unless that field has the Transient annotation. As such, this annotation is mainly useful when the name to map the field to is not the same one that the field itself (but can be added without it's name parameter for documentation sake).

• ### Optional Element Summary

Optional Elements
Modifier and Type Optional Element and Description
boolean caseSensitive
Whether the column name is a case sensitive one.
String name
Name of the column being mapped in Cassandra.
• ### Element Detail

• #### name

public abstract String name
Name of the column being mapped in Cassandra. By default, the name of the field will be used.
Returns:
the name of the mapped column in Cassandra, or "" to use the field name.
Default:
""
• #### caseSensitive

public abstract boolean caseSensitive
Whether the column name is a case sensitive one.
Returns:
whether the column name is a case sensitive one.
Default:
false