From 91bb059258fe04787c93e190248a4414f46c66af Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 7 Jun 2017 14:25:18 +0900 Subject: [PATCH] property isConfirm added --- .../loafle/overflow/email/model/EmailAuth.java | 18 ++++++++++++++++++ .../email/dao/JPAEmailAuthDAOTest.java | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loafle/overflow/email/model/EmailAuth.java b/src/main/java/com/loafle/overflow/email/model/EmailAuth.java index 725cda8..c4a8b7c 100644 --- a/src/main/java/com/loafle/overflow/email/model/EmailAuth.java +++ b/src/main/java/com/loafle/overflow/email/model/EmailAuth.java @@ -27,6 +27,9 @@ public class EmailAuth implements Serializable { @Column(name = "IS_INVALID") private Boolean isInvalid; + @Column(name = "IS_CONFIRM") + private Boolean isConfirm; + @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) private Date createDate; @@ -44,6 +47,21 @@ public class EmailAuth implements Serializable { this.id = id; } + public Boolean getInvalid() { + return isInvalid; + } + + public void setInvalid(Boolean invalid) { + isInvalid = invalid; + } + + public Boolean getIsConfirm() { + return isConfirm; + } + + public void setIsConfirm(Boolean confirm) { + isConfirm = confirm; + } public Long getId() { return id; diff --git a/src/test/java/com/loafle/overflow/email/dao/JPAEmailAuthDAOTest.java b/src/test/java/com/loafle/overflow/email/dao/JPAEmailAuthDAOTest.java index 4aae21d..0b646e6 100644 --- a/src/test/java/com/loafle/overflow/email/dao/JPAEmailAuthDAOTest.java +++ b/src/test/java/com/loafle/overflow/email/dao/JPAEmailAuthDAOTest.java @@ -26,11 +26,11 @@ public class JPAEmailAuthDAOTest { public void createEmailAuth() { EmailAuth auth = new EmailAuth(); - auth.setAuthToken("0F2003A6-83B0-40F5-B56A-0485F458CA91"); - auth.setMember(new Member(Long.valueOf(4))); + auth.setAuthToken("0F2003A6-83B0-40F5-B56A-0485F458CA911"); + auth.setMember(new Member(Long.valueOf(1))); auth.setInvalid(false); // auth.setUpdateDate(new Date()); - + auth.setIsConfirm(false); EmailAuth ret = emailAuthDAO.create(auth); System.out.println(ret.getId()); }