Funcionalidad basica.
This commit is contained in:
parent
04aa2f95a2
commit
8eb602ca16
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user