Annotation Type IgnoreSave


@Retention(RUNTIME) @Target(FIELD) public @interface IgnoreSave

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 @OnLoad and @OnSave to transform your data.

If passed one or more classes that implement the If interface, the value will be ignored 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 invalid input: '<'[email protected]>
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends If<?,?>>[]
     
  • Element Details

    • value

      Class<? extends If<?,?>>[] value
      Default:
      {com.googlecode.objectify.condition.Always.class}