| | |
| | | import java.time.Instant; |
| | | import java.util.List; |
| | | |
| | | import javax.persistence.*; |
| | | import javax.persistence.CascadeType; |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.EntityListeners; |
| | | import javax.persistence.EnumType; |
| | | import javax.persistence.Enumerated; |
| | | import javax.persistence.FetchType; |
| | | import javax.persistence.GeneratedValue; |
| | | import javax.persistence.GenerationType; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.JoinColumn; |
| | | import javax.persistence.OneToMany; |
| | | import javax.persistence.OneToOne; |
| | | import javax.persistence.Table; |
| | | |
| | | import org.springframework.data.annotation.CreatedDate; |
| | | import org.springframework.data.jpa.domain.support.AuditingEntityListener; |
| | | |
| | | import com.pollex.pam.enums.AppointmentStatusEnum; |
| | | import com.pollex.pam.enums.ContactStatusEnum; |
| | | import org.springframework.data.annotation.CreatedDate; |
| | | import org.springframework.data.annotation.LastModifiedDate; |
| | | import org.springframework.data.jpa.domain.support.AuditingEntityListener; |
| | | |
| | | @EntityListeners(AuditingEntityListener.class) |
| | | @Entity |
| | |
| | | @JoinColumn(name = "appointment_id") |
| | | @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) |
| | | private List<AppointmentMemo> appointmentMemoList; |
| | | |
| | | // @OneToOne(cascade = CascadeType.REMOVE,fetch=FetchType.EAGER) |
| | | //// @JoinColumn(name = "form_authority_id", referencedColumnName = "id") |
| | | // @JoinColumn(name = "appointment_id", referencedColumnName = "id") |
| | | // private AppointmentClosedInfo closedInfo; |
| | | |
| | | // @OneToOne(cascade = CascadeType.REMOVE |
| | | // , mappedBy = "appointment", fetch=FetchType.LAZY) |
| | | // private AppointmentClosedInfo closedInfo; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | public void setAppointmentMemoList(List<AppointmentMemo> appointmentMemoList) { |
| | | this.appointmentMemoList = appointmentMemoList; |
| | | } |
| | | |
| | | // public AppointmentClosedInfo getClosedInfo() { |
| | | // return closedInfo; |
| | | // } |
| | | // |
| | | // public void setClosedInfo(AppointmentClosedInfo closedInfo) { |
| | | // this.closedInfo = closedInfo; |
| | | // } |
| | | |
| | | |
| | | |