Migrate DynamoDB mapper annotations to the Enhanced client
ProprietaryReplaces v1 DynamoDBMapper annotations on Java and Kotlin entities with their AWS SDK v2 Enhanced client equivalents, on the getter v2 reads (through Lombok's @Getter(onMethod_ = ...) or Kotlin's @get:). Entities get @DynamoDbBean with the generated V1CompatibleAttributeConverterProvider, so that stored data keeps v1's format, and @DynamoDbTableName. Attribute names v2 would derive differently are pinned with @DynamoDbAttribute. @DynamoDBTypeConvertedJson properties get a generated converter writing the same JSON, project annotations meta-annotated with @DynamoDBTypeConverted apply their converter through @DynamoDbConvertedBy, and Kotlin constructor parameters get default values so that the class has the no-argument constructor v2 needs.
io. moderne. java. spring. data. dynamodb. MigrateDynamoDbMapperAnnotationsOptional
Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.
mod run . --recipe= io. moderne. java. spring. data. dynamodb. MigrateDynamoDbMapperAnnotationsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.