| | |
| | | import java.io.Serializable; |
| | | import java.time.Instant; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.EnumType; |
| | | import javax.persistence.Enumerated; |
| | | import javax.persistence.GeneratedValue; |
| | | import javax.persistence.GenerationType; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import javax.persistence.*; |
| | | |
| | | import com.pollex.pam.enums.ContactStatusEnum; |
| | | import org.springframework.data.annotation.LastModifiedDate; |
| | | import org.springframework.data.jpa.domain.support.AuditingEntityListener; |
| | | |
| | | @EntityListeners(AuditingEntityListener.class) |
| | | @Entity |
| | | @Table(name = "appointment") |
| | | public class Appointment implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | @Id |
| | | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| | | 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 int 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; |
| | | |
| | | |
| | | @LastModifiedDate |
| | | @Column(name = "appointment_date") |
| | | private Instant appointmentDate = Instant.now(); |
| | | |
| | | private Instant appointmentDate; |
| | | |
| | | @Column(name = "agent_no") |
| | | private String agentNo; |
| | | |
| | | |
| | | @Column(name = "customer_id") |
| | | private Long customerId; |
| | | |
| | |
| | | this.gender = gender; |
| | | } |
| | | |
| | | public int getAge() { |
| | | public String getAge() { |
| | | return age; |
| | | } |
| | | |
| | | public void setAge(int age) { |
| | | public void setAge(String age) { |
| | | this.age = age; |
| | | } |
| | | |
| | |
| | | public void setCustomerId(Long customerId) { |
| | | this.customerId = customerId; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |