From 5b21689fbd2294aa22aa5604c0c06af0bdad5d2b Mon Sep 17 00:00:00 2001 From: geek Date: Fri, 4 May 2018 15:03:22 +0900 Subject: [PATCH] ing --- .../com/loafle/overflow/model/email/EmailAuth.java | 11 +++++++++++ .../overflow/model/email/type/EmailType.java | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/main/java/com/loafle/overflow/model/email/type/EmailType.java diff --git a/src/main/java/com/loafle/overflow/model/email/EmailAuth.java b/src/main/java/com/loafle/overflow/model/email/EmailAuth.java index 4741a0d..05a3b9f 100644 --- a/src/main/java/com/loafle/overflow/model/email/EmailAuth.java +++ b/src/main/java/com/loafle/overflow/model/email/EmailAuth.java @@ -16,6 +16,7 @@ public class EmailAuth { private Date createDate; private Date authConfirmDate; private Member member; + private String emailType; @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @@ -66,4 +67,14 @@ public class EmailAuth { public void setMember(Member member) { this.member = member; } + + @Basic + @Column(name = "EMAIL_TYPE", nullable = true, length = 10) + public String getEmailType() { + return emailType; + } + + public void setEmailType(String emailType) { + this.emailType = emailType; + } } diff --git a/src/main/java/com/loafle/overflow/model/email/type/EmailType.java b/src/main/java/com/loafle/overflow/model/email/type/EmailType.java new file mode 100644 index 0000000..e448cca --- /dev/null +++ b/src/main/java/com/loafle/overflow/model/email/type/EmailType.java @@ -0,0 +1,14 @@ +package com.loafle.overflow.model.email.type; + +public enum EmailType { + SIGNUP("SIGNUP"), + PASSWORD("PASSWORD"); + + private String stringValue; + EmailType(String string) {stringValue = string;} + + @Override + public String toString() { + return stringValue; + } +}