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="sdm_indikatorkualitas_m")
public class IndikatorKualitas extends BaseMaster {
	
	@Caption(value = "Nama Indikator Kualitas")
	@Column(name = "namaindikatorkualitas", nullable = true)
	private String namaIndikatorKualitas;
	
	@Caption(value = "Definisi Operasional")
	@Column(name = "definisioperasional", nullable = true)
	private String definisiOperasional;
	
	@Caption(value = "Persentase Target")
	@Column(name = "target", nullable = true)
	private Integer target;
	
	@ManyToOne(fetch = FetchType.LAZY, optional=true)
	@JoinColumn(name = "objecturaiankegiatanfk", nullable=true)
	@Caption(value = "Uraian Kegiatan")
	private UraianKegiatan uraianKegiatan;
	
	@Column(name = "objecturaiankegiatanfk", insertable = false, updatable = false, nullable = true)
	private Integer idUraianKegiatan;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.sdm_indikatorkualitas_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.sdm_indikatorkualitas_m_id_seq", sequenceName = "public.sdm_indikatorkualitas_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public String getNamaIndikatorKualitas() {
		return namaIndikatorKualitas;
	}

	public void setNamaIndikatorKualitas(String namaIndikatorKualitas) {
		this.namaIndikatorKualitas = namaIndikatorKualitas;
	}

	public String getDefinisiOperasional() {
		return definisiOperasional;
	}

	public void setDefinisiOperasional(String definisiOperasional) {
		this.definisiOperasional = definisiOperasional;
	}

	public Integer getTarget() {
		return target;
	}

	public void setTarget(Integer target) {
		this.target = target;
	}

	public UraianKegiatan getUraianKegiatan() {
		return uraianKegiatan;
	}

	public void setUraianKegiatan(UraianKegiatan uraianKegiatan) {
		this.uraianKegiatan = uraianKegiatan;
	}

	public Integer getIdUraianKegiatan() {
		return idUraianKegiatan;
	}

	public void setIdUraianKegiatan(Integer idUraianKegiatan) {
		this.idUraianKegiatan = idUraianKegiatan;
	}

	public Integer getId() {
		return id;
	}

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