@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Field
UDT
will be mapped by default to a UDT field
having the same name than this Java field unless that Java 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).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