Annotation Type JsonNaming
-
@Target({ANNOTATION_TYPE,TYPE}) @Retention(RUNTIME) public @interface JsonNaming
Annotation that can be used to indicate aPropertyNamingStrategy
to use for annotated class. Overrides the global (default) strategy. Note that if thevalue()
property is omitted, its default value means "use default naming" (that is, no alternate naming method is used). This can be used as an override with mix-ins.- Since:
- 2.1
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends PropertyNamingStrategy>
value
-
-
-
Element Detail
-
value
java.lang.Class<? extends PropertyNamingStrategy> value
- Returns:
- Type of
PropertyNamingStrategy
to use, if any; default value ofPropertyNamingStrategy.class
means "no strategy specified" (and may also be used for overriding to remove otherwise applicable naming strategy)
- Default:
- com.fasterxml.jackson.databind.PropertyNamingStrategy.class
-
-