-
Bug
-
Resolution: Done
-
Major
-
PLINK_2.5.2.FInal
-
None
Currently, annotations are not being recognized in fields. Eg.:
@AttributeProperty private String firstName; @AttributeProperty private String lastName; @AttributeProperty private String email;
The Property Query API should also consider the field when looking for annotations and also consider that if a field is annotated its corresponding accessor method inherits the annotation.
This issue usually happens when using the NamedPropertyCriteria. This is because the accessor is first considered during the query and the field is not considered at all. So the resulting Property instance will always be a MethodProperty, which in this case does not have the annotation.