Annotation 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.
-
Element Details
-
requiredParameter
boolean requiredParameterIndicates whether the annotated property is required to be passed in to the generated constructor.- Returns:
- Whether the annotated property is required to be passed in to the generated constructor.
- Default:
true
-
generateMethods
boolean generateMethodsIndicates 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
-