DynamoDB mapping API differences between version 1 and version 2 of the Amazon SDK for Java
The DynamoDB mapping APIs changed significantly between version 1 and version 2 of the
Amazon SDK for Java. In version 1, you use the DynamoDBMapper
to work with Java POJOs. In
version 2, you use the DynamoDbEnhancedClient
with updated method names, enhanced schema
definition options, and improved type safety.
Key differences include:
-
New method names (such as
getItem
instead ofload
) -
Explicit table schema creation
-
Built-in support for both synchronous and asynchronous operations
-
Changes in how empty strings and configuration are handled
This section covers the mapping API changes, annotation differences, configuration
updates, and migration guidance to help you transition from the v1 DynamoDBMapper
to the v2
DynamoDbEnhancedClient
.
Contents
High-level changes in mapping libraries from version 1 to version 2 of the SDK for Java
Changes in the DynamoDB mapping APIs between version 1 and version 2 of the SDK for Java
String handling differences between version 1 and version 2 of the SDK for Java
Optimistic locking differences between version 1 and version 2 of the SDK for Java
Fluent setters differences between version 1 and version 2 of the SDK for Java