@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Field
Note that this annotation is generally optional in the sense that any field or any getter
method of a Java bean property of a class annotated by UDT
will be mapped by default to a
UDT field having the same name than this Java field / bean property unless that Java field or
method has the Transient
annotation. As such, this annotation is mainly useful when the
UDT field name does not correspond to the Java 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
Copyright © 2012–2018. All rights reserved.