@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface DynamoDBAutoGeneratedDefault
@DynamoDBTable(tableName="TestTable") public class TestClass { private String key; private String status; @DynamoDBHashKey public String getKey() { return key; } public void setKey(String key) { this.key = key; } @DynamoDBAutoGeneratedDefault("OPEN") public Sttring getStatus() { return status; } public void setStatus(String status) { this.status = status; } }Please note, Only compatible with properties of standard types:
String
,
BigDecimal
, BigInteger
, Boolean
,
Byte
, Calendar
, Character
,
Date
, Double
, Enum
, Float
,
Integer
, Long
, Short
, and UUID
.public abstract String value
Copyright © 2016. All rights reserved.