Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.datastax.driver.mapping.annotations;
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).

public @interface Column {
Name of the column being mapped in Cassandra. By default, the name of the field will be used.

the name of the mapped column in Cassandra, or "" to use the field name.
    String name() default "";

Whether the column name is a case sensitive one.

whether the column name is a case sensitive one.
    boolean caseSensitive() default false;
New to GrepCode? Check out our FAQ X