Database Reference
In-Depth Information
public String getPubDate() {
return PubDate;
}
public void setPubDate(String pubDate) {
PubDate = pubDate;
}
@DynamoDBAttribute(attributeName="Publisher")
public String getPublisher() {
return Publisher;
}
public void setPublisher(String publisher) {
Publisher = publisher;
}
@DynamoDBAttribute(attributeName="Edition")
public Integer getEdition() {
return Edition;
}
public void setEdition(Integer edition) {
Edition = edition;
}
@DynamoDBAttribute(attributeName="Language")
public Set<String>getLanguage() {
return Language;
}
public void setLanguage(Set<String> language) {
Language = language;
}
}
The @DynamoDBTable(tableName="Tbl_Book") annotation will map the
BookEntity class to the DynamoDB Tbl_Book table. The hash-type attribute's
( BookTitle ) getter ( getBookTitle ) will be followed by the @Dy-
namoDBHashKey(attributeName="BookTitle") annotation and the range at-
tribute's getter ( getAuthor ) will be followed by the @Dy-
namoDBRangeKey(attributeName="Author") annotation.
Search WWH ::




Custom Search