package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

/**
 * class StrukPelayanan
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "CssdUjiVisual_T")
public class CssdUjiVisual extends BaseTransaction {

	@Column(name = "kebersihanALat")
	private String kebersihanAlat;

	@Column(name = "kondisiAlat")
	private String kondisiAlat;

	@Column(name = "kelenturanAlat")
	private String kelenturanAlat;

	@Column(name = "ketajamanAlat")
	private String ketajamanAlat;

	@Column(name = "alatBerkarat")
	private String alatBerkarat;

	@Column(name = "warnaAlat")
	private String warnaAlat;

	@Column(name = "kelayakanAlat")
	private String kelayakanAlat;

	@Column(name = "kemampuanMenjepit")
	private String kemampuanMenjepit;

	@Column(name = "keutuhanAlat")
	private String keutuhanAlat;

	@Column(name = "linenYangDikemas")
	private String linenYangdikemas;

	@Column(name = "jamMulaiSterilisasi")
	private Date jamMulaiSterilisasi;

	@Column(name = "jamSelesaiSterilisasi")
	private Date jamSelesaiSterilisasi;

	@Column(name = "hasilChemicalIndikator")
	private String hasilChemicalIndikator;

	@Column(name = "hasilLabelIndikator")
	private String hasilLabelIndikator;

	@Column(name = "tindakan")
	private String tindakan;

	@ManyToOne
	@JoinColumn(name = "planningPelayanan")
	@Caption(value = "planningPelayanan")
	private PlanningPelayanan planningPelayanan;

	@Column(name = "planningPelayanan", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String planningPelayananId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "petugas")
	@Caption(value = "petugas")
	private Pegawai pegawai;

	@Column(name = "petugas", insertable = false, updatable = false)
	private Integer pegawaiId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "mengetahui")
	@Caption(value = "mengetahui")
	private Pegawai mengetahui;

	@Column(name = "mengetahuiId", insertable = false, updatable = false)
	private Integer mengetahuiId;

}
