DynamoDbPreserveEmptyObject should apply to Maps #5674
Labels
feature-request
A feature should be added or improved.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Describe the feature
The
@DynamoDbPreserveEmptyObject
annotation should write an emptym
attribute when applied to aMap
property.Use Case
I have a DynamoDB record object with a property of type
Map<String, OtherRecord> nested
that I will fill in as events happen. Unfortunately, DynamoDB won't let me do a single-shot update if thenested
attribute does not already exist, so I want to write an empty map attribute on record creation. Currently, even with@DynamoDbPreserveEmptyObject
theMap
property is omittedProposed Solution
No response
Other Information
No response
Acknowledgements
AWS Java SDK version used
2.28.27
JDK version used
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
Operating System and version
Gentoo Linux
The text was updated successfully, but these errors were encountered: