121 lines
2.8 KiB
Java
121 lines
2.8 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name = "DetailPerlakuan_T")
|
|
public class DetailPerlakuan extends BaseTransaction {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "objectPerlakuanFk")
|
|
@NotNull(message = "Perlakuan Tidak Boleh Kosong")
|
|
private Perlakuan perlakuan;
|
|
|
|
@Column(name="objectPerlakuanFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer perlakuanId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "objectNeracaLimbahFk")
|
|
@JsonBackReference
|
|
private NeracaLimbah neracaLimbah;
|
|
|
|
@Column(name="objectNeracaLimbahFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
|
|
private String neracaLimbahId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "objectPerizinanLimbahFk")
|
|
@JsonBackReference
|
|
private PerizinanLimbah perizinanLimbah;
|
|
|
|
@Column(name="objectPerizinanLimbahFk", insertable = false, updatable = false, nullable = true)
|
|
private Integer perizinanLimbahId;
|
|
|
|
|
|
@Column(name="jenisLimbahYangDikelola")
|
|
private String jenisLimbahYangDikelola;
|
|
|
|
@Column(name="jumlah")
|
|
private Double jumlah;
|
|
|
|
public Perlakuan getPerlakuan() {
|
|
return perlakuan;
|
|
}
|
|
|
|
public void setPerlakuan(Perlakuan perlakuan) {
|
|
this.perlakuan = perlakuan;
|
|
}
|
|
|
|
public Integer getPerlakuanId() {
|
|
return perlakuanId;
|
|
}
|
|
|
|
public void setPerlakuanId(Integer perlakuanId) {
|
|
this.perlakuanId = perlakuanId;
|
|
}
|
|
|
|
public NeracaLimbah getNeracaLimbah() {
|
|
return neracaLimbah;
|
|
}
|
|
|
|
public void setNeracaLimbah(NeracaLimbah neracaLimbah) {
|
|
this.neracaLimbah = neracaLimbah;
|
|
}
|
|
|
|
public String getNeracaLimbahId() {
|
|
return neracaLimbahId;
|
|
}
|
|
|
|
public void setNeracaLimbahId(String neracaLimbahId) {
|
|
this.neracaLimbahId = neracaLimbahId;
|
|
}
|
|
|
|
public PerizinanLimbah getPerizinanLimbah() {
|
|
return perizinanLimbah;
|
|
}
|
|
|
|
public void setPerizinanLimbah(PerizinanLimbah perizinanLimbah) {
|
|
this.perizinanLimbah = perizinanLimbah;
|
|
}
|
|
|
|
|
|
|
|
public Integer getPerizinanLimbahId() {
|
|
return perizinanLimbahId;
|
|
}
|
|
|
|
public void setPerizinanLimbahId(Integer perizinanLimbahId) {
|
|
this.perizinanLimbahId = perizinanLimbahId;
|
|
}
|
|
|
|
public String getJenisLimbahYangDikelola() {
|
|
return jenisLimbahYangDikelola;
|
|
}
|
|
|
|
public void setJenisLimbahYangDikelola(String jenisLimbahYangDikelola) {
|
|
this.jenisLimbahYangDikelola = jenisLimbahYangDikelola;
|
|
}
|
|
|
|
public Double getJumlah() {
|
|
return jumlah;
|
|
}
|
|
|
|
public void setJumlah(Double jumlah) {
|
|
this.jumlah = jumlah;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|