Skip to content

Instantly share code, notes, and snippets.

@billydh
Created November 10, 2020 01:35
Show Gist options
  • Save billydh/023adba898dab80956ee53f31e40f3e7 to your computer and use it in GitHub Desktop.
Save billydh/023adba898dab80956ee53f31e40f3e7 to your computer and use it in GitHub Desktop.
with DynamoDbBean annotation
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbPartitionKey
@DynamoDbBean
data class CustomerPersist(
@get:DynamoDbPartitionKey var customerId: String? = null,
var emailAddress: String? = null,
var firstName: String? = null,
var lastName: String? = null
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment