@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Frozen
frozen
,
or contains frozen subtypes.
This annotation is purely informational at this stage, but will become useful when a schema generation feature is added to the mapper.
FrozenKey
,
FrozenValue
public abstract 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.
Copyright © 2012–2015. All rights reserved.