- Enclosing class:
Json
Mark this Class as a MixIn Type that can add Jsonb Annotations on the specified type.
These types are typically in an external project / dependency or otherwise
types that we can't or don't want to explicitly annotate with @Json
.
In the example below, the VehicleMixin class augments the the generated Vehicle JsonB adapter to use "ford-type" as the json property.
invalid input: '{@code
@Json.MixIn(Vehicle.class)
public abstract class VehicleMixIn {
@Json.Property("ford-type")
private String type;
...
}</pre>'
-
Required Element Summary
Required Elements
-
Element Details
-
value
Class<?> valueThe concrete type to mix.
-