Skip to content
Snippets Groups Projects
Commit f36a5253 authored by ribeaudc's avatar ribeaudc
Browse files

[LMS-265]

add: - method 'label()' to annotation 'BeanProperty' (kind of static alias).
change: - specify an alias for each field annotated with 'BeanProperty'.
- get rid of 'code' field when possible by extending 'Code' class (annotated with 'BeanProperty').

SVN: 4673
parent ab3929dc
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,16 @@ public @interface BeanProperty ...@@ -37,8 +37,16 @@ public @interface BeanProperty
/** /**
* Whether this bean property is optional or not. * Whether this bean property is optional or not.
* <p> * <p>
* Default is <code>false</code>. * Default is <code>false</code> meaning that any field annotated with this is mandatory.
* </p> * </p>
*/ */
public boolean optional() default false; public boolean optional() default false;
/**
* Static label (or alias) for this annotated field.
* <p>
* This <b>must</b> be specified as the parser prefers to work with the label than with the field name.
* </p>
*/
public String label() default "";
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment