com.googlecode.objectify.annotation.Serialized Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* When placed on an entity field, the field will be written as a single Blob
* property using java serialization.
*
*
* - The field can contain an arbitrary object graph.
* - All classes in the graph must follow Java serialization rules (ie, implement Serializable).
* - You will not be able to use the field or any child fields in queries.
* - Within serialized classes, {@code transient} (the java keyword, not the annotation) fields will not be stored.
* {@code @Transient} fields *will* be stored!
* - {@code @Serialized} collections can be nested inside {@code @Embedded} collections.
* - Java serialization is opaque to the datastore viewer and other languages (ie gae/python).
*
*
* You are strongly advised to place {@code serialVersionUID} on all classes
* that you intend to store as {@code @Serialized}. Without this, any change to your
* classes will prevent stored objects from being deserialized on fetch.
*
* @author Jeff Schnitzer
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Serialized
{
}