@Documented @Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Experimental(value=SCHEMAS) public @interface SchemaFieldName
For example, a Java POJO with a field that we want in our schema but under a different name.
@DefaultSchema(JavaBeanSchema.class)
class MyClass {
public String user;
@SchemaFieldName("age")
public int ageInYears;
}
The resulting schema will have fields named "user" and "age."
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
The name to use for the generated schema field.
|