package com.pollex.pam.domain;
|
|
import java.io.Serializable;
|
import java.time.Instant;
|
import java.util.List;
|
|
import javax.persistence.CascadeType;
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.EnumType;
|
import javax.persistence.Enumerated;
|
import javax.persistence.FetchType;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.OneToMany;
|
import javax.persistence.Table;
|
|
import com.pollex.pam.enums.AppointmentStatusEnum;
|
import com.pollex.pam.enums.ContactStatusEnum;
|
|
@Entity
|
@Table(name = "appointment_customer_view")
|
public class AppointmentCustomerView implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Column(name = "appointment_id")
|
@Id
|
private Long id;
|
|
@Column(name = "phone")
|
private String phone;
|
|
@Column(name = "email")
|
private String email;
|
|
@Column(name = "contact_type")
|
private String contactType;
|
|
@Column(name = "gender")
|
private String gender;
|
|
@Column(name = "age")
|
private String age;
|
|
@Column(name = "job")
|
private String job;
|
|
@Column(name = "requirement")
|
private String requirement;
|
|
@Enumerated(EnumType.STRING)
|
@Column(name = "communicate_status")
|
private ContactStatusEnum communicateStatus;
|
|
@Column(name = "hope_contact_time")
|
private String hopeContactTime;
|
|
@Column(name = "other_requirement")
|
private String otherRequirement;
|
|
@Column(name = "appointment_date")
|
private Instant appointmentDate;
|
|
@Column(name = "agent_no")
|
private String agentNo;
|
|
@Column(name = "customer_id")
|
private Long customerId;
|
|
@Column(name = "consultant_view_time")
|
private Instant consultantViewTime;
|
|
@Column(name = "consultant_read_time")
|
private Instant consultantReadTime;
|
|
@Column(name = "contact_time")
|
private Instant contactTime;
|
|
@Column(name = "last_modified_date")
|
private Instant lastModifiedDate;
|
|
@Column(name = "name")
|
private String name;
|
|
@Enumerated(value = EnumType.STRING)
|
@Column(name = "status")
|
private AppointmentStatusEnum status;
|
|
@JoinColumn(name = "appointment_id")
|
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE)
|
private List<AppointmentMemo> appointmentMemoList;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
public String getContactType() {
|
return contactType;
|
}
|
|
public void setContactType(String contactType) {
|
this.contactType = contactType;
|
}
|
|
public String getGender() {
|
return gender;
|
}
|
|
public void setGender(String gender) {
|
this.gender = gender;
|
}
|
|
public String getAge() {
|
return age;
|
}
|
|
public void setAge(String age) {
|
this.age = age;
|
}
|
|
public String getJob() {
|
return job;
|
}
|
|
public void setJob(String job) {
|
this.job = job;
|
}
|
|
public String getRequirement() {
|
return requirement;
|
}
|
|
public void setRequirement(String requirement) {
|
this.requirement = requirement;
|
}
|
|
public ContactStatusEnum getCommunicateStatus() {
|
return communicateStatus;
|
}
|
|
public void setCommunicateStatus(ContactStatusEnum communicateStatus) {
|
this.communicateStatus = communicateStatus;
|
}
|
|
public String getHopeContactTime() {
|
return hopeContactTime;
|
}
|
|
public void setHopeContactTime(String hopeContactTime) {
|
this.hopeContactTime = hopeContactTime;
|
}
|
|
public String getOtherRequirement() {
|
return otherRequirement;
|
}
|
|
public void setOtherRequirement(String otherRequirement) {
|
this.otherRequirement = otherRequirement;
|
}
|
|
public Instant getAppointmentDate() {
|
return appointmentDate;
|
}
|
|
public void setAppointmentDate(Instant appointmentDate) {
|
this.appointmentDate = appointmentDate;
|
}
|
|
public String getAgentNo() {
|
return agentNo;
|
}
|
|
public void setAgentNo(String agentNo) {
|
this.agentNo = agentNo;
|
}
|
|
public Long getCustomerId() {
|
return customerId;
|
}
|
|
public void setCustomerId(Long customerId) {
|
this.customerId = customerId;
|
}
|
|
public Instant getConsultantViewTime() {
|
return consultantViewTime;
|
}
|
|
public void setConsultantViewTime(Instant consultantViewTime) {
|
this.consultantViewTime = consultantViewTime;
|
}
|
|
public Instant getConsultantReadTime() {
|
return consultantReadTime;
|
}
|
|
public void setConsultantReadTime(Instant consultantReadTime) {
|
this.consultantReadTime = consultantReadTime;
|
}
|
|
public Instant getLastModifiedDate() {
|
return lastModifiedDate;
|
}
|
|
public void setLastModifiedDate(Instant lastModifiedDate) {
|
this.lastModifiedDate = lastModifiedDate;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Instant getContactTime() {
|
return contactTime;
|
}
|
|
public void setContactTime(Instant markCommunicateTime) {
|
this.contactTime = markCommunicateTime;
|
}
|
public AppointmentStatusEnum getStatus() {
|
return status;
|
}
|
|
public void setStatus(AppointmentStatusEnum status) {
|
this.status = status;
|
}
|
|
public List<AppointmentMemo> getAppointmentMemoList() {
|
return appointmentMemoList;
|
}
|
|
public void setAppointmentMemoList(List<AppointmentMemo> appointmentMemoList) {
|
this.appointmentMemoList = appointmentMemoList;
|
}
|
|
|
}
|