Package io.ebean.annotation
Annotation Type JsonIgnore
-
@Retention(RUNTIME) @Target(FIELD) public @interface JsonIgnore
Similar to Jackson JsonIgnore but provides the option to just ignore serialize or deserialize.This provides the same features as Expose but from the opposite perspective which is probably more common and more familiar to Jackson users.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleandeserializeIftrue, the field marked with this annotation is deserialized from the JSON.booleanserializeIftrue, the field marked with this annotation is written out in the JSON while serializing.
-
-
-
Element Detail
-
serialize
boolean serialize
Iftrue, the field marked with this annotation is written out in the JSON while serializing. Iffalse, the field marked with this annotation is skipped from the serialized output. Defaults tofalse.- Default:
- false
-
-
-
deserialize
boolean deserialize
Iftrue, the field marked with this annotation is deserialized from the JSON. Iffalse, the field marked with this annotation is skipped during deserialization. Defaults tofalse.- Default:
- false
-
-