@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Computed
Note that such properties are only filled by default mapper operations (Mapper.get(Object...)
), they will be ignored in accessor queries and save operations.
As opposed to other mapper annotations, this one doesn't handle case sensitivity. If your expression contains case-sensitive names, you'll need to quote them explicitly:
@Computed("\"caseSensitiveFunction\"(v)")
public abstract String value
This is a CQL expression like you would use directly in a query, for instance "writetime(v)"
.
Copyright © 2012–2019. All rights reserved.