This commit is contained in:
geek 2018-05-04 15:03:22 +09:00
parent f62f0107c1
commit 5b21689fbd
2 changed files with 25 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}