Annotation Type DynamoDbPreserveEmptyObject
-
@Target(METHOD) @Retention(RUNTIME) public @interface DynamoDbPreserveEmptyObject
Specifies that when callingTableSchema.mapToItem(Map)
, a separate DynamoDB object that is stored in the current object should be initialized as empty class if all fields in this class are null. Note that if this annotation is absent, the object will be null.Example using
DynamoDbPreserveEmptyObject
:{@snippet :