Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import com.google.gwt.user.client.rpc.IsSerializable;
4

    
5
import javax.persistence.*;
6
import java.math.BigInteger;
7
import java.sql.Timestamp;
8

    
9

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

    
19
	@Id
20
	@Column
21
	private BigInteger id;
22
	
23
	private Timestamp date;
24

    
25
	private Timestamp expires;
26

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

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

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

    
44
	public BigInteger getId() {
45
		return id;
46
	}
47

    
48
	public void setId(BigInteger id) {
49
		this.id = id;
50
	}
51

    
52
	public AccountAction() {
53
	}
54

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

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

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

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

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

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

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

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