Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

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

    
7

    
8
/**
9
 * The persistent class for the account_action database table.
10
 * 
11
 */
12
@Entity
13
@Table(name="account_action")
14
public class AccountAction implements Serializable {
15
	private static final long serialVersionUID = 1L;
16

    
17
	@Id
18
	@GeneratedValue(strategy=GenerationType.AUTO)
19
	//@Column(columnDefinition = "text")
20
	private int id;
21
	
22
	private Timestamp date;
23

    
24
	private Timestamp expires;
25

    
26
	//@Column(columnDefinition = "text")
27
	private String token;
28
	//@Column(columnDefinition = "text")
29
	private String type;
30
	
31
	@OneToOne
32
	@JoinColumn(name = "user")
33
	private User user;
34

    
35
	public User getUser() {
36
		return user;
37
	}
38

    
39
	public void setUser(User user) {
40
		this.user = user;
41
	}
42

    
43
	public int getId() {
44
		return id;
45
	}
46

    
47
	public void setId(int id) {
48
		this.id = id;
49
	}
50

    
51
	public AccountAction() {
52
	}
53

    
54
	public Timestamp getDate() {
55
		return this.date;
56
	}
57

    
58
	public void setDate(Timestamp date) {
59
		this.date = date;
60
	}
61

    
62
	public Timestamp getExpires() {
63
		return this.expires;
64
	}
65

    
66
	public void setExpires(Timestamp expires) {
67
		this.expires = expires;
68
	}
69

    
70
	public String getToken() {
71
		return this.token;
72
	}
73

    
74
	public void setToken(String token) {
75
		this.token = token;
76
	}
77

    
78
	public String getType() {
79
		return this.type;
80
	}
81

    
82
	public void setType(String type) {
83
		this.type = type;
84
	}
85
}
(1-1/40)