@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Computed
Entity
property, 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;
public abstract String value
This is a CQL expression like you would use directly in a query, for instance writetime(v)
.
Copyright © 2017–2023. All rights reserved.