Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (1.13 KB)

1
package org.lidar.db;
2

    
3
import java.io.Serializable;
4
import javax.persistence.*;
5

    
6
/**
7
 * Client DB table
8
 * @author Andrej Cimpersek
9
 */
10
@Entity
11
@Table(name = "client")
12
public class Client implements Serializable {
13

    
14
    private Integer id;
15
    private String apiKey;
16
    private String token;
17
    private String username;
18

    
19
    public Client() {
20
    }
21

    
22
    public Client(Integer id, String apiKey, String token) {
23
        this.id = id;
24
        this.apiKey = apiKey;
25
        this.token = token;
26
    }
27

    
28
    @Id
29
    @GeneratedValue(strategy = GenerationType.AUTO)
30
    public Integer getId() {
31
        return this.id;
32
    }
33

    
34
    public void setId(Integer id) {
35
        this.id = id;
36
    }
37

    
38
    @Column(name = "apikey")
39
    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
    public String getUsername() {
56
        return this.username;
57
    }
58

    
59
    public void setUsername(String username) {
60
        this.username = username;
61
    }
62
}