Funcionalidad basica.

This commit is contained in:
Araozu 2018-06-11 21:56:48 -05:00
parent 04aa2f95a2
commit 8eb602ca16

View File

@ -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";
}
}