118 lines
2.7 KiB
Java
118 lines
2.7 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name = "KendaliDokumenRekamMedis_T")
|
|
public class KendaliDokumenRekamMedis extends BaseTransaction {
|
|
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectStatusKendaliDokumenFk")
|
|
@Caption(value="ObjectStatusKendaliDokumen")
|
|
private StatusKendaliDokumen statusKendaliDokumen;
|
|
|
|
@Column(name = "ObjectStatusKendaliDokumenFk", insertable=false,updatable=false,nullable=true)
|
|
private Integer statusKendaliDokumenId;
|
|
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name = "NoCMFk", nullable = false )
|
|
@NotNull(message="No C M Harus Diisi")
|
|
@Caption(value="No C M")
|
|
private Pasien pasien;
|
|
|
|
@Column(name = "NoCMFk", insertable=false,updatable=false,nullable = false)
|
|
private Integer pasienId;
|
|
|
|
@Caption(value="tglUpdate")
|
|
@Column(name = "tglUpdate", nullable = false )
|
|
private Date tglUpdate;
|
|
|
|
@Caption(value="tglKembali")
|
|
@Column(name = "tglKembali", nullable = true )
|
|
private Date tglKembali;
|
|
|
|
@Caption(value="dariUnit")
|
|
@Column(name = "dariUnit", nullable = true )
|
|
private String dariUnit;
|
|
|
|
@Caption(value="keUnit")
|
|
@Column(name = "keUnit", nullable = true )
|
|
private String keUnit;
|
|
|
|
public StatusKendaliDokumen getStatusKendaliDokumen() {
|
|
return statusKendaliDokumen;
|
|
}
|
|
|
|
public void setStatusKendaliDokumen(StatusKendaliDokumen statusKendaliDokumen) {
|
|
this.statusKendaliDokumen = statusKendaliDokumen;
|
|
}
|
|
|
|
public Integer getStatusKendaliDokumenId() {
|
|
return statusKendaliDokumenId;
|
|
}
|
|
|
|
public void setStatusKendaliDokumenId(Integer statusKendaliDokumenId) {
|
|
this.statusKendaliDokumenId = statusKendaliDokumenId;
|
|
}
|
|
|
|
public Pasien getPasien() {
|
|
return pasien;
|
|
}
|
|
|
|
public void setPasien(Pasien pasien) {
|
|
this.pasien = pasien;
|
|
}
|
|
|
|
public Integer getPasienId() {
|
|
return pasienId;
|
|
}
|
|
|
|
public void setPasienId(Integer pasienId) {
|
|
this.pasienId = pasienId;
|
|
}
|
|
|
|
public Date getTglUpdate() {
|
|
return tglUpdate;
|
|
}
|
|
|
|
public void setTglUpdate(Date tglUpdate) {
|
|
this.tglUpdate = tglUpdate;
|
|
}
|
|
|
|
public Date getTglKembali() {
|
|
return tglKembali;
|
|
}
|
|
|
|
public void setTglKembali(Date tglKembali) {
|
|
this.tglKembali = tglKembali;
|
|
}
|
|
|
|
public String getDariUnit() {
|
|
return dariUnit;
|
|
}
|
|
|
|
public void setDariUnit(String dariUnit) {
|
|
this.dariUnit = dariUnit;
|
|
}
|
|
|
|
public String getKeUnit() {
|
|
return keUnit;
|
|
}
|
|
|
|
public void setKeUnit(String keUnit) {
|
|
this.keUnit = keUnit;
|
|
}
|
|
|
|
}
|