From b7d0ac08cfc53d8f8155c744db5326328521faac Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 3 Jul 2017 15:21:01 +0900 Subject: [PATCH] EmailAuth Timestamp -> Date --- .../overflow/module/email/model/EmailAuth.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java b/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java index c46f672..83705fc 100644 --- a/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java +++ b/src/main/java/com/loafle/overflow/module/email/model/EmailAuth.java @@ -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; }