@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface Frozen
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value
Contains the full CQL type of the target column.
|
public abstract java.lang.String value
Examples:
// Will map to frozen<user>
@Frozen
private User user;
@Frozen("map<text, map<text, frozen<user>>>")
private Map<String, Map<String, User>> m;
Also consider the @FrozenKey and @FrozenValue
shortcuts for simple collections.