Description:
|
Currently, annotations are not being recognized in fields. Eg.:
{code} @AttributeProperty private String firstName;
@AttributeProperty private String lastName;
@AttributeProperty private String email; {code}
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 matches, the field is not considered. So the resulting Property instance will always be a MethodProperty, which in this case does not have the annotation.
|