Created
June 18, 2020 23:02
-
-
Save sashbuild/c81187011ea6e7a697bb38e52875bcbb 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
@DynamoDBTable(tableName = "employees-dev") | |
public class Employee | |
{ | |
private String id; | |
private String name; | |
private String department; | |
@DynamoDBAutoGeneratedKey | |
@DynamoDBHashKey(attributeName = "id") | |
public String getId() | |
{ | |
return id; | |
} | |
@DynamoDBRangeKey(attributeName = "name") | |
public String getName() | |
{ | |
return name; | |
} | |
@DynamoDBAttribute(attributeName = "department") | |
public String getDepartment() | |
{ | |
return department; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment