Created
November 10, 2020 09:49
-
-
Save billydh/59bfaf8f44d9991212c616076747b429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.* | |
| @DynamoDbBean | |
| data class Account( | |
| @get:DynamoDbPartitionKey var accountId: String? = null, | |
| @get:DynamoDbSortKey var creationTimestampEpoch: Long? = null, | |
| @get:DynamoDbSecondaryPartitionKey(indexNames = ["accountByCustomerId"]) var customerId: String? = null, | |
| @get:DynamoDbSecondarySortKey(indexNames = ["accountByCustomerId"]) var amount: Double? = null, | |
| var accountType: String? = null | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment