Revision 49292
Added by Sofia Baltzi over 6 years ago
UserVerification.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.openaire.user; |
2 | 2 |
|
3 |
import java.sql.Date; |
|
4 | 3 |
|
4 |
import java.sql.Timestamp; |
|
5 |
|
|
5 | 6 |
/** |
6 | 7 |
* Created by sofia on 3/10/2017. |
7 | 8 |
*/ |
8 | 9 |
public class UserVerification { |
9 | 10 |
|
10 |
private String id;
|
|
11 |
private int id;
|
|
11 | 12 |
private String username; |
12 | 13 |
private String verificationCode; |
13 |
private Date date;
|
|
14 |
private Timestamp date;
|
|
14 | 15 |
|
15 | 16 |
public UserVerification() { |
16 | 17 |
|
... | ... | |
20 | 21 |
this.username = username; |
21 | 22 |
} |
22 | 23 |
|
23 |
public String getId(){
|
|
24 |
public int getId(){
|
|
24 | 25 |
return id; |
25 | 26 |
} |
26 | 27 |
|
27 |
public void setId(String id){
|
|
28 |
public void setId(int id){
|
|
28 | 29 |
this.id = id; |
29 | 30 |
} |
30 | 31 |
|
... | ... | |
44 | 45 |
this.verificationCode = verificationCode; |
45 | 46 |
} |
46 | 47 |
|
47 |
public Date getDate() {
|
|
48 |
public Timestamp getDate() {
|
|
48 | 49 |
return date; |
49 | 50 |
} |
50 | 51 |
|
51 |
public void setDate(Date date) {
|
|
52 |
public void setDate(Timestamp date) {
|
|
52 | 53 |
this.date = date; |
53 | 54 |
} |
54 | 55 |
|
Also available in: Unified diff
Change date to timestamp and Add some log messages for debugging