org.loom.appengine.annotations
Annotation Type RootKey


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD,PARAMETER})
@Documented
public @interface RootKey

Tags a key attribute or parameter as a root entity one, so just the Base58 ID value can be used instead of the full serialized key


Required Element Summary
 java.lang.Class<?> value
          The persistent class to be used for deserializing.
 
Optional Element Summary
 RootKey.RootKeyType type
          The key type.
 

Element Detail

value

public abstract java.lang.Class<?> value
The persistent class to be used for deserializing. The unqualified class name will be used for creating the key

type

public abstract RootKey.RootKeyType type
The key type. Defaults to id

Default:
org.loom.appengine.annotations.RootKey.RootKeyType.ID