86 lines
1.8 KiB
Plaintext
86 lines
1.8 KiB
Plaintext
package com.healthcare.ohctech.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotNull;
|
|
import org.hibernate.annotations.UpdateTimestamp;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "complaints")
|
|
public class Complaint {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "complaint_id")
|
|
private Long id;
|
|
|
|
@NotBlank(message = "Complaint should not be null or blank")
|
|
@Column(name = "complaint")
|
|
private String complaint;
|
|
|
|
@Column(name = "complaint_desc")
|
|
private String complaintDesc;
|
|
|
|
@Column(name = "modified_by")
|
|
private Long modifiedBy;
|
|
|
|
@Column(name = "last_modified")
|
|
@UpdateTimestamp
|
|
private LocalDateTime lastModified;
|
|
|
|
@Column(name = "is_active")
|
|
private String isActive;
|
|
|
|
// Getters and setters
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getComplaint() {
|
|
return complaint;
|
|
}
|
|
|
|
public void setComplaint(String complaint) {
|
|
this.complaint = complaint;
|
|
}
|
|
|
|
public String getComplaintDesc() {
|
|
return complaintDesc;
|
|
}
|
|
|
|
public void setComplaintDesc(String complaintDesc) {
|
|
this.complaintDesc = complaintDesc;
|
|
}
|
|
|
|
public Long getModifiedBy() {
|
|
return modifiedBy;
|
|
}
|
|
|
|
public void setModifiedBy(Long modifiedBy) {
|
|
this.modifiedBy = modifiedBy;
|
|
}
|
|
|
|
public LocalDateTime getLastModified() {
|
|
return lastModified;
|
|
}
|
|
|
|
public void setLastModified(LocalDateTime lastModified) {
|
|
this.lastModified = lastModified;
|
|
}
|
|
|
|
public String getIsActive() {
|
|
return isActive;
|
|
}
|
|
|
|
public void setIsActive(String isActive) {
|
|
this.isActive = isActive;
|
|
}
|
|
}
|