property isConfirm added
This commit is contained in:
parent
6638013189
commit
91bb059258
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user