diff --git a/src/model/Role.java b/src/model/Role.java index 4db97e4..09b4e42 100644 --- a/src/model/Role.java +++ b/src/model/Role.java @@ -1,4 +1,28 @@ package model; +import com.google.appengine.api.datastore.Key; + +import javax.jdo.annotations.IdGeneratorStrategy; +import javax.jdo.annotations.PersistenceCapable; +import javax.jdo.annotations.Persistent; +import javax.jdo.annotations.PrimaryKey; + +@PersistenceCapable public class Role { + + @PrimaryKey + @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) + private Key key; + + @Persistent + private String name; + + public Role(String name){ + this.name = name; + } + + @Override + public String toString() { + return "Role name: " + name +"\n"; + } }