Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support @DynamoDBTypeConverted instead of/in addition to @DynamoDBMarshalling for query methods #62

Closed
spatula75 opened this issue Nov 3, 2016 · 12 comments
Milestone

Comments

@spatula75
Copy link

Today, query methods only seem to understand @DynamoDBMarshalling, which is a deprecated annotation in DynamoDB (and kind of obnoxious because it only supports going to/from Strings, which makes it lousy for dates).

It would be awesome if DynamoDBTypeConverted fields were supported by AbstractDynamoDBQueryCriteria so that fields annotated in this way would work with query methods.

@alex-arana
Copy link

+1

1 similar comment
@mattcorey
Copy link

+1

alex-arana pushed a commit to alex-arana/spring-data-dynamodb that referenced this issue Apr 3, 2017
…namoDBTypeConverted, @DynamoDBTyped etc.) instead of/in addition to @DynamoDBMarshalling for query methods.

Signed-off-by: Alex Arana <alex.arana@skyhubdigital.com>
@alexarana
Copy link

NOTES

I have added #79 to deal with this very issue.

This change introduces support for DynamoDBMapper v2 conversion schemas with support for all relevant annotations including:

  • DynamoDBTypeConverted
  • DynamoDBTypeConvertedEnum
  • DynamoDBTypeConvertedTimestamp
  • DynamoDBTyped

Also, any custom meta-annotations including one or more of the above would be equally supported using the new code.

I've left a few TODOs in the code where feedback is particularly sought.

@fpoolev
Copy link

fpoolev commented Apr 4, 2017

+1

derjust added a commit that referenced this issue Oct 3, 2017
@derjust
Copy link
Owner

derjust commented Oct 3, 2017

Thanks for the PR. I merged it and therefore close this issue

@derjust derjust closed this as completed Oct 3, 2017
@pyteld
Copy link

pyteld commented Dec 6, 2017

@derjust could you release new version from branch 4.6.x with this fix?

@alex-arana
Copy link

alex-arana commented Dec 6, 2017 via email

@ronniehicks
Copy link

I'm not sure if I'm doing something wrong here, but I can't seem to get this to work. I have an entity object with a @DynamoDBTypeConvertedEnum annotation directly on the field and when trying to write a findByStatus method I'm getting the following error. Any thoughts?

Cannot create condition for type:class x property conditions must be String,Number or Boolean, or have a DynamoDBMarshaller configured

@ryankazokas
Copy link

@ronniehicks are you using the correct version? It looks like the PR was merged in to v5.0.1. I have the same issue with version < 5 and had to use the @DynamoDBMarshalling annotation.

@ronniehicks
Copy link

It looks like the PR was merged in to v5.0.1

I was not aware of that. The project I'm on is currently using Spring Boot 1.5.7, which relies on Spring 4, and we're not super comfortable upgrading to the version that needs Spring 5 quite yet. Think there's any chance that this could get pulled into the v4 release?

@derjust
Copy link
Owner

derjust commented Jan 22, 2018

I will have a look what the impact would be

@derjust derjust reopened this Jan 22, 2018
@derjust derjust modified the milestones: v4.5.3, v4.5.4 Jan 22, 2018
derjust pushed a commit that referenced this issue Jan 23, 2018
…ypeConverted, @DynamoDBTyped etc.) instead of/in addition to @DynamoDBMarshalling for query methods.

Signed-off-by: Alex Arana <alex.arana@skyhubdigital.com>
derjust added a commit that referenced this issue Jan 23, 2018
@derjust
Copy link
Owner

derjust commented Jan 23, 2018

@ronniehicks want to give 4.5.4 a shot? 😀
It should be available in Central within the next minutes. If you still encounter any other issues please open a new issue (and refer this one).

@derjust derjust closed this as completed Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants