package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name="PengukuranSanitasiKLDetail_M")
public class PengukuranSanitasiKLDetail extends BaseMaster{
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectSanitasiKesehatanLingkunganFk")
	private SanitasiKesehatanLingkungan sanitasiKesehatanLingkungan;
	
	@Column(name="ObjectSanitasiKesehatanLingkunganFk", nullable=false, insertable=false, updatable=false)
	private String sanitasiKesehatanLingkunganId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectParameterCheckSanitasiDetailFk")
	private ParameterCheckSanitasiDetail parameterCheckSanitasiDetail;
	
	@Column(name="ObjectParameterCheckSanitasiDetailFk", nullable=false, insertable=false, updatable=false)
	private Integer parameterCheckSanitasiDetailId;
	
	@Caption(value = "Hasil Pengukuran")
	@Column(name = "HasilPengukuran")
	private Float hasilPengukuran;
	
	@Caption(value = "Keterangan")
	@Column(name = "Keterangan", nullable = true, length = 100)
	private String keterangan;

	public SanitasiKesehatanLingkungan getSanitasiKesehatanLingkungan() {
		return sanitasiKesehatanLingkungan;
	}

	public void setSanitasiKesehatanLingkungan(SanitasiKesehatanLingkungan sanitasiKesehatanLingkungan) {
		this.sanitasiKesehatanLingkungan = sanitasiKesehatanLingkungan;
	}

	public ParameterCheckSanitasiDetail getParameterCheckSanitasiDetail() {
		return parameterCheckSanitasiDetail;
	}

	public void setParameterCheckSanitasiDetail(ParameterCheckSanitasiDetail parameterCheckSanitasiDetail) {
		this.parameterCheckSanitasiDetail = parameterCheckSanitasiDetail;
	}

	public Integer getParameterCheckSanitasiDetailId() {
		return parameterCheckSanitasiDetailId;
	}

	public void setParameterCheckSanitasiDetailId(Integer parameterCheckSanitasiDetailId) {
		this.parameterCheckSanitasiDetailId = parameterCheckSanitasiDetailId;
	}

	public Float getHasilPengukuran() {
		return hasilPengukuran;
	}

	public void setHasilPengukuran(Float hasilPengukuran) {
		this.hasilPengukuran = hasilPengukuran;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getSanitasiKesehatanLingkunganId() {
		return sanitasiKesehatanLingkunganId;
	}

	public void setSanitasiKesehatanLingkunganId(String sanitasiKesehatanLingkunganId) {
		this.sanitasiKesehatanLingkunganId = sanitasiKesehatanLingkunganId;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.PengukuranSanitasiKLDetail_M_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.PengukuranSanitasiKLDetail_M_id_seq", sequenceName = "public.PengukuranSanitasiKLDetail_M_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
}
