@JsonbAnnotation @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,FIELD,METHOD}) public @interface JsonbTransient
Prevents mapping of a Java Bean property, field or type to JSON representation.
Usage
The @JsonbTransient
annotation can be used with the following program elements:
@JsonbTransient
is mutually exclusive with all other JSON Binding defined annotations.
If a class field is annotated with @JsonbTransient
, exception is thrown when this field,
getter or setter is annotated with other JSON Binding annotations.
If a getter is annotated with @JsonbTransient
, exception is thrown if when the field
or this getter are annotated with other JSON Binding annotations. Exception is not thrown
if JSON Binding annotations are presented on the setter.
If a setter is annotated with @JsonbTransient
, exception is thrown if when the field
or this setter are annotated with other JSON Binding annotations. Exception is not thrown
if JSON Binding annotations are presented on the getter.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.