This file contains 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