Annotation Type PropertySettings
-
@Retention(RUNTIME) @Target(METHOD) public @interface PropertySettings
Used to specify the settings used when generating code for a property.This annotation should always be placed on the getter method of a property.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
generateMethods
Indicates whether the annotated property should have methods generated for it.boolean
requiredParameter
Indicates whether the annotated property is required to be passed in to the generated constructor.
-
-
-
-
generateMethods
boolean generateMethods
Indicates whether the annotated property should have methods generated for it.If this value is set to
true
,requiredParameter()
can only be set tofalse
if the annotated property is a primitive.- Returns:
- Whether the annotated property should have methods generated for it.
- Default:
- true
-
-