Skip to content

Error in parse table indexes from annotations for querying a DynamoDB table  #203

@juniorklein

Description

@juniorklein

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions