@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Column
Table
will be mapped by default to a column
having the same name than this field / property, unless that field or method has the
Transient
annotation. As such, this annotation is mainly useful when
the CQL column name does not correspond to the field or property name itself.Modifier and Type | Optional Element and Description |
---|---|
boolean |
caseSensitive
Whether the column name is a case sensitive one.
|
Class<? extends TypeCodec<?>> |
codec
A custom codec that will be used to serialize and deserialize the column.
|
String |
name
Name of the column being mapped in Cassandra.
|
public abstract String name
""
to use
the field name.public abstract boolean caseSensitive
public abstract Class<? extends TypeCodec<?>> codec