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

read generated value from @DynamoDbAutoGeneratedUuid from AutoGeneratedUuidExtension in case table uses @DynamoDbImmutable #5675

Open
2 tasks
michalgebauer opened this issue Oct 23, 2024 · 0 comments
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@michalgebauer
Copy link

Describe the feature

Currently there is no way how to read generated Uuid in case it was used on partition key attribute in immutable DynamoDb table.
The extension only decorates PutItem operation but since the DB model is immutable we can't get to the actual value used during Put. Calling getItem afterwards makes no sense, since we don't know the partition key of newly created item

Use Case

It is very typical to use generated UUID as partition key. As of now, this is not possible.

Proposed Solution

Put request could have a method that would be triggered when all extensions where applied to item or putItem response could contain final version of item that was used during PutItem operation

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

dynamodb-enhanced-2.28.27.jar

JDK version used

17

Operating System and version

macOs 15.0.1

@michalgebauer michalgebauer added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant