EmailAuth Timestamp -> Date

This commit is contained in:
geek 2017-07-03 15:21:01 +09:00
parent da34f5932e
commit b7d0ac08cf

View File

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