@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Computed
Note that such fields 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 annotation, 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–2015. All rights reserved.