/
AuthtokenToken.java
55 lines (41 loc) · 1015 Bytes
/
AuthtokenToken.java
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package org.openconceptlab.fhir.model;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* The persistent class for the authtoken_token database table.
* @author harpatel1
*/
@Entity
@Table(name="authtoken_token")
public class AuthtokenToken extends BaseOclEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String key;
@Column
private Timestamp created;
@ManyToOne
@JoinColumn(name="user_id")
private UserProfile userProfile;
public AuthtokenToken() {
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
public Timestamp getCreated() {
return this.created;
}
public void setCreated(Timestamp created) {
this.created = created;
}
public UserProfile getUserProfile() {
return this.userProfile;
}
public void setUserProfile(UserProfile userProfile) {
this.userProfile = userProfile;
}
}