Untitled
Anonymous
plain_text
12/23/2024 6:50 AM
1.3 KB
28
Indexable
@AllArgsConstructor
@Builder
@Data
@DynamoDBTable(tableName = "notes")
public class NotesEntity {
@DynamoDBHashKey
@DynamoDBAutoGeneratedKey
private final String notesId;
@DynamoDBAttribute(attributeName = "resourceId")
@DynamoDBIndexHashKey(globalSecondaryIndexName = "resourceId-index")
@NonNull
private final String resourceId;
@DynamoDBAttribute(attributeName = "resourceType")
@DynamoDBIndexHashKey(globalSecondaryIndexName = "resourceType-index")
@NonNull
private final String resourceType;
@NonNull
private final String notes;
@DynamoDBAttribute(attributeName = "author")
@DynamoDBIndexHashKey(globalSecondaryIndexName = "author-index")
@NonNull
private final String author;
private final Map<String, String> context;
@DynamoDBAttribute(attributeName = "createDateTime")
@DynamoDBAutoGeneratedTimestamp(strategy = DynamoDBAutoGenerateStrategy.CREATE)
private final Long createDateTime;
}Editor is loading...
Leave a Comment