Annotation Interface WeaveName


@Retention(RUNTIME) @Target(FIELD) public @interface WeaveName
Overrides the displayed name of a field, method, or record component in JWeaver's textual output.

This is useful when the internal field name differs from the desired representation, or when you want to abbreviate or localize property names.

When present, @WeaveName takes precedence over the default field or accessor name determined by reflection.

public class Address {
    @WeaveName("zip")
    private String postalCode;
}
Since:
2.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details