Annotation 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:

  • getter/setter
  • field

@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.

Since:
JSON Binding 1.0