Skip to content

Instantly share code, notes, and snippets.

@sashbuild
Created June 18, 2020 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sashbuild/c81187011ea6e7a697bb38e52875bcbb to your computer and use it in GitHub Desktop.
Save sashbuild/c81187011ea6e7a697bb38e52875bcbb to your computer and use it in GitHub Desktop.
@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