com.googlecode.objectify.annotation
Annotation Type NotSaved


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface NotSaved

When placed on an entity field, the field will not be written to the datastore. It will, however, be loaded normally. This is particularly useful in concert with @PostLoad and @PrePersist to transform your data.

If passed one or more classes that implement the If interface, the value will be NotSaved only if it tests positive for any of the conditions. This is a convenient way to prevent storing of default values, potentially saving a significant amount of storage and indexing cost.

Author:
Jeff Schnitzer

Optional Element Summary
 java.lang.Class<? extends If<?,?>>[] value
           
 

value

public abstract java.lang.Class<? extends If<?,?>>[] value
Default:
com.googlecode.objectify.condition.Always.class


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1