When querying a table with global secondary indexes annotated in property instead the getter method, SDK says that have error in query because can't find index in property.
Debugging the SDK, I believe the error occurs in class DynamoDBTableSchemaParser in line 122 because only in the getter method is verified if annotation is present. In other classes that verify the presence of an annotation, the system uses the method ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class), but in this case, only in the getter method is verified (getter.isAnnotationPresent(DynamoDBIndexHashKey.class)).
I believe that this is an error.
When querying a table with global secondary indexes annotated in property instead the getter method, SDK says that have error in query because can't find index in property.
Debugging the SDK, I believe the error occurs in class DynamoDBTableSchemaParser in line 122 because only in the getter method is verified if annotation is present. In other classes that verify the presence of an annotation, the system uses the method ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class), but in this case, only in the getter method is verified (getter.isAnnotationPresent(DynamoDBIndexHashKey.class)).
I believe that this is an error.