package kr.wisestone.owl.domain;
|
|
import kr.wisestone.owl.domain.enumType.EmailType;
|
import org.hibernate.annotations.Type;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* Created by wisestone on 2018-03-14.
|
*/
|
@Entity
|
public class SystemEmail extends BaseEntity implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
private String sendAddress;
|
@Enumerated(EnumType.STRING)
|
private EmailType emailType;
|
private String parameter;
|
@Type(type = "yes_no")
|
private Boolean sendYn = Boolean.FALSE; // N : 발송 대기, Y : 발송 완료
|
|
public SystemEmail() {}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getSendAddress() {
|
return sendAddress;
|
}
|
|
public void setSendAddress(String sendAddress) {
|
this.sendAddress = sendAddress;
|
}
|
|
public EmailType getEmailType() {
|
return emailType;
|
}
|
|
public void setEmailType(EmailType emailType) {
|
this.emailType = emailType;
|
}
|
|
public String getParameter() {
|
return parameter;
|
}
|
|
public void setParameter(String parameter) {
|
this.parameter = parameter;
|
}
|
|
public Boolean getSendYn() {
|
return sendYn;
|
}
|
|
public void setSendYn(Boolean sendYn) {
|
this.sendYn = sendYn;
|
}
|
}
|