property isConfirm added

This commit is contained in:
geek 2017-06-07 14:25:18 +09:00
parent 6638013189
commit 91bb059258
2 changed files with 21 additions and 3 deletions

View File

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

View File

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