summaryrefslogtreecommitdiff
path: root/src/lq/Administrator.java
blob: 3f12278c8f128ba8af51f86abca9685904470b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package lq;

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 Administrator {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String email;

    public Administrator(String email) {
        this.email = email;
    }

    public Key getKey() { return key; }
    public String getEmail() { return email; }

    public void setKey(Key key) { this.key = key; }
    public void setEmail(String email) { this.email = email; }
}