org.loom.appengine.json.CursorJacksonMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of loom-appengine Show documentation
Show all versions of loom-appengine Show documentation
Uploads all artifacts belonging to configuration ':archives'.
The newest version!
package org.loom.appengine.json;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import com.google.appengine.api.datastore.Cursor;
/**
* Mixin used to serialize {@link Cursor} instances using Jackson.
* To use, invoke
*
* objectMapper.getSerializationConfig().addMixInAnnotations(Cursor.class, CursorJacksonMixIn.class);
*
* Details about mixins in Jackson can be seen here
* @author icoloma
*
*/
@JsonSerialize(using=CursorSerializer.class)
@JsonDeserialize(using=CursorDeserializer.class, as=Cursor.class)
public class CursorJacksonMixin {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy