Project

General

Profile

Statistics
| Revision:

root / trunk / src / java / org / lidar / db / Client.java

History | View | Annotate | Download (1.13 KB)

1 9 andrej.cim
package org.lidar.db;
2
3
import java.io.Serializable;
4
import javax.persistence.*;
5
6
/**
7 11 andrej.cim
 * Client DB table
8 9 andrej.cim
 * @author Andrej Cimpersek
9
 */
10
@Entity
11 11 andrej.cim
@Table(name = "client")
12 9 andrej.cim
public class Client implements Serializable {
13 11 andrej.cim
14 9 andrej.cim
    private Integer id;
15
    private String apiKey;
16
    private String token;
17 11 andrej.cim
    private String username;
18 9 andrej.cim
19 11 andrej.cim
    public Client() {
20 9 andrej.cim
    }
21
22 11 andrej.cim
    public Client(Integer id, String apiKey, String token) {
23 9 andrej.cim
        this.id = id;
24
        this.apiKey = apiKey;
25
        this.token = token;
26
    }
27
28
    @Id
29 11 andrej.cim
    @GeneratedValue(strategy = GenerationType.AUTO)
30 9 andrej.cim
    public Integer getId() {
31
        return this.id;
32
    }
33
34
    public void setId(Integer id) {
35
        this.id = id;
36
    }
37
38 11 andrej.cim
    @Column(name = "apikey")
39 9 andrej.cim
    public String getApiKey() {
40
        return this.apiKey;
41
    }
42
43
    public void setApiKey(String apiKey) {
44
        this.apiKey = apiKey;
45
    }
46
47
    public String getToken() {
48
        return this.token;
49
    }
50
51
    public void setToken(String token) {
52
        this.token = token;
53
    }
54
55 11 andrej.cim
    public String getUsername() {
56
        return this.username;
57
    }
58
59
    public void setUsername(String username) {
60
        this.username = username;
61
    }
62 9 andrej.cim
}