package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
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 // @Audited
@Table(name = "sdm_RincianKegiatan_M")
public class RincianKegiatan extends BaseMaster {

	@Column(name = "RincianKegiatan", nullable = true, length = 8000)
	@Caption(value = "Rincian Kegiatan")
	private String rincianKegiatan;

	@Caption(value = "satuan")
	@Column(name = "satuan", nullable = true)
	private String satuan;

	@ManyToOne
	@JoinColumn(name = "ObjectSatuanIndikatorFk")
	@Caption(value = "Object Satuan Indikator")
	private SatuanIndikator satuanIndikator;

	@Column(name = "ObjectSatuanIndikatorFk", insertable = false, updatable = false, nullable = true)
	private Integer satuanIndikatorId;

	@Column(name = "statusVerifikasi", nullable = true)
	@Caption(value = "statusVerifikasi")
	private Integer statusVerifikasi;

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

	public String getRincianKegiatan() {
		return rincianKegiatan;
	}

	public void setRincianKegiatan(String rincianKegiatan) {
		this.rincianKegiatan = rincianKegiatan;
	}

	public Integer getId() {
		return id;
	}

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

	public String getSatuan() {
		return satuan;
	}

	public void setSatuan(String satuan) {
		this.satuan = satuan;
	}

	public Integer getStatusVerifikasi() {
		return statusVerifikasi;
	}

	public void setStatusVerifikasi(Integer statusVerifikasi) {
		this.statusVerifikasi = statusVerifikasi;
	}

	public SatuanIndikator getSatuanIndikator() {
		return satuanIndikator;
	}

	public void setSatuanIndikator(SatuanIndikator satuanIndikator) {
		this.satuanIndikator = satuanIndikator;
	}

	public Integer getSatuanIndikatorId() {
		return satuanIndikatorId;
	}

	public void setSatuanIndikatorId(Integer satuanIndikatorId) {
		this.satuanIndikatorId = satuanIndikatorId;
	}

}
