@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Column
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).
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
Copyright © 2012–2015. All rights reserved.