EmailAuth Timestamp -> Date
This commit is contained in:
parent
da34f5932e
commit
b7d0ac08cf
|
@ -3,7 +3,7 @@ package com.loafle.overflow.module.email.model;
|
|||
import com.loafle.overflow.module.member.model.Member;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by root on 17. 6. 22.
|
||||
|
@ -13,8 +13,8 @@ import java.sql.Timestamp;
|
|||
public class EmailAuth {
|
||||
private long id;
|
||||
private String emailAuthKey;
|
||||
private Timestamp createDate;
|
||||
private Timestamp authConfirmDate;
|
||||
private Date createDate;
|
||||
private Date authConfirmDate;
|
||||
private Member member;
|
||||
|
||||
@Id
|
||||
|
@ -39,21 +39,21 @@ public class EmailAuth {
|
|||
|
||||
@Basic
|
||||
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||
public Timestamp getCreateDate() {
|
||||
public Date getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(Timestamp createDate) {
|
||||
public void setCreateDate(Date createDate) {
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "AUTH_CONFIRM_DATE", nullable = true, insertable = true, updatable = false)
|
||||
public Timestamp getAuthConfirmDate() {
|
||||
public Date getAuthConfirmDate() {
|
||||
return authConfirmDate;
|
||||
}
|
||||
|
||||
public void setAuthConfirmDate(Timestamp authConfirmDate) {
|
||||
public void setAuthConfirmDate(Date authConfirmDate) {
|
||||
this.authConfirmDate = authConfirmDate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user