Skip to content

DynamoDBMarshalling field annotation is ignored in DynamoDBEntityMetadataSupportΒ #32

@ujann

Description

@ujann

We used @DynamoDBMarshalling as a field annotation in our model class to marshal a java enum.
Saving and loading works, but when we use this field within a criteria we get an exception in AbstractDynamoDBQueryCriteria stating Cannot create condition for type:class xxx.domain.Status property conditions must be String,Number or Boolean, or have a DynamoDBMarshaller configured.

In class DynamoDBEntityMetadataSupport method public DynamoDBMarshaller<?> getMarshallerForProperty(final String propertyName) the logic only checks for an annotation on the getter, so the @DynamoDBMarshalling field annotation is ignored.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions