001package com.avaje.ebean.annotation;
002
003import java.lang.annotation.ElementType;
004import java.lang.annotation.Retention;
005import java.lang.annotation.RetentionPolicy;
006import java.lang.annotation.Target;
007
008/*
009    Copied from gson!!!
010 */
011@Retention(RetentionPolicy.RUNTIME)
012@Target(ElementType.FIELD)
013public @interface Expose {
014
015  /**
016   * If {@code true}, the field marked with this annotation is written out in the JSON while
017   * serializing. If {@code false}, the field marked with this annotation is skipped from the
018   * serialized output. Defaults to {@code true}.
019   */
020  boolean serialize() default true;
021
022  /**
023   * If {@code true}, the field marked with this annotation is deserialized from the JSON.
024   * If {@code false}, the field marked with this annotation is skipped during deserialization.
025   * Defaults to {@code true}.
026   */
027  boolean deserialize() default true;
028}