| | |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | |
| | | import com.pollex.pam.enums.PersonalNotificationRoleEnum; |
| | | import com.pollex.pam.enums.SatisfactionTypeEnum; |
| | | import org.springframework.data.annotation.CreatedDate; |
| | | import org.springframework.data.annotation.LastModifiedDate; |
| | | |
| | |
| | | @Entity |
| | | @Table(name = "satisfaction") |
| | | public class Satisfaction implements Serializable { |
| | | |
| | | |
| | | /** |
| | | * |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | @Id |
| | | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| | | private Long id; |
| | | |
| | | |
| | | @CreatedDate |
| | | @Column(name = "created_date", updatable = false) |
| | | @JsonIgnore |
| | |
| | | @Column(name = "last_modified_date") |
| | | @JsonIgnore |
| | | private Instant lastModifiedDate = Instant.now(); |
| | | |
| | | |
| | | @Column(name = "customer_id") |
| | | private Long customerId; |
| | | |
| | | |
| | | @Column(name = "agent_no") |
| | | private String agentNo; |
| | | |
| | | |
| | | @Enumerated(EnumType.STRING) |
| | | @Column(name = "status") |
| | | private SatisfactionStatusEnum status; |
| | | |
| | | |
| | | @Column(name = "score") |
| | | private Float score; |
| | | |
| | | @Column(name = "appointment_id") |
| | | private Long appointmentId; |
| | | |
| | | @Enumerated(EnumType.STRING) |
| | | @Column(name = "type") |
| | | private SatisfactionTypeEnum type; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | public void setScore(Float score) { |
| | | this.score = score; |
| | | } |
| | | |
| | | |
| | | |
| | | public Long getAppointmentId() { |
| | | return appointmentId; |
| | | } |
| | | |
| | | public void setAppointmentId(Long appointmentId) { |
| | | this.appointmentId = appointmentId; |
| | | } |
| | | |
| | | public SatisfactionTypeEnum getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(SatisfactionTypeEnum type) { |
| | | this.type = type; |
| | | } |
| | | } |