Skip to content

Instantly share code, notes, and snippets.

@sashbuild
Created June 18, 2020 23:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
@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