Annotation Type Computed
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface Computed
Annotates the field or getter of anEntityproperty, to indicate that when retrieving data that the property should be set to the result of computation on the Cassandra side, typically a function call.Example:
@Computed("writetime(v)") private int writeTime;
-
-
Element Detail
-
value
String value
The formula used to compute the property.This is a CQL expression like you would use directly in a query, for instance
writetime(v).- Returns:
- the formula.
-
-