| | |
| | | |
| | | 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 |
| | |
| | | @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; |
| | |
| | | this.consultantReadTime = consultantReadTime; |
| | | } |
| | | |
| | | public Instant getLastModifiedDate() { |
| | | return lastModifiedDate; |
| | | } |
| | | |
| | | public void setLastModifiedDate(Instant lastModifiedDate) { |
| | | this.lastModifiedDate = lastModifiedDate; |
| | | } |
| | | |
| | | public String getName() { |
| | | return 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; |
| | | } |
| | | |
| | | |
| | | } |