251 lines
5.4 KiB
Plaintext
251 lines
5.4 KiB
Plaintext
package com.healthcare.ohctech.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import org.hibernate.annotations.UpdateTimestamp;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "bio_medical_waste")
|
|
public class BioMedicalWaste {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "waste_id")
|
|
private Long id;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "dis_agncy" , referencedColumnName = "agency_id")
|
|
private DisposalAgency disposalAgency;
|
|
|
|
@Column(name = "waste_gen_date")
|
|
private LocalDateTime wasteGenDate;
|
|
|
|
@Column(name = "plant_yellow_qty")
|
|
private Float plantYellowQty;
|
|
|
|
@Column(name = "yellow_bags")
|
|
private Integer yellowBags;
|
|
|
|
@Column(name = "plant_white_qty")
|
|
private Float plantWhiteQty;
|
|
|
|
@Column(name = "white_bags")
|
|
private Integer whiteBags;
|
|
|
|
@Column(name = "plant_blue_qty")
|
|
private Float plantBlueQty;
|
|
|
|
@Column(name = "blue_bags")
|
|
private Integer blueBags;
|
|
|
|
@Column(name = "plant_red_qty")
|
|
private Float plantRedQty;
|
|
|
|
@Column(name = "red_bags")
|
|
private Integer redBags;
|
|
|
|
@Column(name = "forward_status")
|
|
private Integer forwardStatus;
|
|
|
|
@Column(name = "collected_by")
|
|
private String collectedBy;
|
|
|
|
@Column(name = "vehicle_no")
|
|
private String vehicleNo;
|
|
|
|
@Column(name = "challan_no")
|
|
private String challanNo;
|
|
|
|
@Column(name = "approved_by")
|
|
private Integer approvedBy;
|
|
|
|
@Column(name = "surveillance_by")
|
|
private String surveillanceBy;
|
|
|
|
@Column(name = "approval_status")
|
|
private String approvalStatus;
|
|
|
|
@Column(name = "modified_by")
|
|
private Long modifiedBy;
|
|
|
|
@Column(name = "last_modified")
|
|
@UpdateTimestamp
|
|
private LocalDateTime lastModified;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ohc_type_id" , referencedColumnName = "id")
|
|
private OhcType ohcType;
|
|
|
|
// Getters and setters
|
|
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public DisposalAgency getDisposalAgency() {
|
|
return disposalAgency;
|
|
}
|
|
|
|
public void setDisposalAgency(DisposalAgency disposalAgency) {
|
|
this.disposalAgency = disposalAgency;
|
|
}
|
|
|
|
public LocalDateTime getWasteGenDate() {
|
|
return wasteGenDate;
|
|
}
|
|
|
|
public void setWasteGenDate(LocalDateTime wasteGenDate) {
|
|
this.wasteGenDate = wasteGenDate;
|
|
}
|
|
|
|
public Float getPlantYellowQty() {
|
|
return plantYellowQty;
|
|
}
|
|
|
|
public void setPlantYellowQty(Float plantYellowQty) {
|
|
this.plantYellowQty = plantYellowQty;
|
|
}
|
|
|
|
public Integer getYellowBags() {
|
|
return yellowBags;
|
|
}
|
|
|
|
public void setYellowBags(Integer yellowBags) {
|
|
this.yellowBags = yellowBags;
|
|
}
|
|
|
|
public Float getPlantWhiteQty() {
|
|
return plantWhiteQty;
|
|
}
|
|
|
|
public void setPlantWhiteQty(Float plantWhiteQty) {
|
|
this.plantWhiteQty = plantWhiteQty;
|
|
}
|
|
|
|
public Integer getWhiteBags() {
|
|
return whiteBags;
|
|
}
|
|
|
|
public void setWhiteBags(Integer whiteBags) {
|
|
this.whiteBags = whiteBags;
|
|
}
|
|
|
|
public Float getPlantBlueQty() {
|
|
return plantBlueQty;
|
|
}
|
|
|
|
public void setPlantBlueQty(Float plantBlueQty) {
|
|
this.plantBlueQty = plantBlueQty;
|
|
}
|
|
|
|
public Integer getBlueBags() {
|
|
return blueBags;
|
|
}
|
|
|
|
public void setBlueBags(Integer blueBags) {
|
|
this.blueBags = blueBags;
|
|
}
|
|
|
|
public Float getPlantRedQty() {
|
|
return plantRedQty;
|
|
}
|
|
|
|
public void setPlantRedQty(Float plantRedQty) {
|
|
this.plantRedQty = plantRedQty;
|
|
}
|
|
|
|
public Integer getRedBags() {
|
|
return redBags;
|
|
}
|
|
|
|
public void setRedBags(Integer redBags) {
|
|
this.redBags = redBags;
|
|
}
|
|
|
|
public Integer getForwardStatus() {
|
|
return forwardStatus;
|
|
}
|
|
|
|
public void setForwardStatus(Integer forwardStatus) {
|
|
this.forwardStatus = forwardStatus;
|
|
}
|
|
|
|
public String getCollectedBy() {
|
|
return collectedBy;
|
|
}
|
|
|
|
public void setCollectedBy(String collectedBy) {
|
|
this.collectedBy = collectedBy;
|
|
}
|
|
|
|
public String getVehicleNo() {
|
|
return vehicleNo;
|
|
}
|
|
|
|
public void setVehicleNo(String vehicleNo) {
|
|
this.vehicleNo = vehicleNo;
|
|
}
|
|
|
|
public String getChallanNo() {
|
|
return challanNo;
|
|
}
|
|
|
|
public void setChallanNo(String challanNo) {
|
|
this.challanNo = challanNo;
|
|
}
|
|
|
|
public Integer getApprovedBy() {
|
|
return approvedBy;
|
|
}
|
|
|
|
public void setApprovedBy(Integer approvedBy) {
|
|
this.approvedBy = approvedBy;
|
|
}
|
|
|
|
public String getSurveillanceBy() {
|
|
return surveillanceBy;
|
|
}
|
|
|
|
public void setSurveillanceBy(String surveillanceBy) {
|
|
this.surveillanceBy = surveillanceBy;
|
|
}
|
|
|
|
public String getApprovalStatus() {
|
|
return approvalStatus;
|
|
}
|
|
|
|
public void setApprovalStatus(String approvalStatus) {
|
|
this.approvalStatus = approvalStatus;
|
|
}
|
|
|
|
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 OhcType getOhcType() {
|
|
return ohcType;
|
|
}
|
|
|
|
public void setOhcType(OhcType ohcType) {
|
|
this.ohcType = ohcType;
|
|
}
|
|
}
|