package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import java.util.Date;

import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class MapAsKepIntervensiToProduk
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "MapUraianTugasToRincianKegiatan_M")
public class MapUraianTugasToRincianKegiatan extends BaseMaster {

	@Column(name = "QRincianKegiatan", nullable = true, length = 100)
	@Caption(value = "QRincianKegiatan")
	private Byte qRincianKegiatan;

	public Integer getKdRincianKegiatan() {
		return kdRincianKegiatan;
	}

	public void setKdRincianKegiatan(Integer kdRincianKegiatan) {
		this.kdRincianKegiatan = kdRincianKegiatan;
	}

	public String getNoUrut() {
		return noUrut;
	}

	public void setNoUrut(String noUrut) {
		this.noUrut = noUrut;
	}

	public String getRincianKegiatan() {
		return rincianKegiatan;
	}

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

	public MapJabatanToUraianTugas getMapJabatanToUraianTugas() {
		return mapJabatanToUraianTugas;
	}

	public void setMapJabatanToUraianTugas(MapJabatanToUraianTugas mapJabatanToUraianTugas) {
		this.mapJabatanToUraianTugas = mapJabatanToUraianTugas;
	}

	public PelaksanaanTugas getPelaksanaanTugas() {
		return pelaksanaanTugas;
	}

	public void setPelaksanaanTugas(PelaksanaanTugas pelaksanaanTugas) {
		this.pelaksanaanTugas = pelaksanaanTugas;
	}

	@Column(name = "KdRincianKegiatan", nullable = true, length = 100)
	@Caption(value = "KdRincianKegiatan")
	private Integer kdRincianKegiatan;

	@Column(name = "NoUrut", nullable = true, length = 10)
	@Caption(value = "NoUrut")
	private String noUrut;

	@Column(name = "Bobot", nullable = true, length = 10)
	@Caption(value = "Bobot")
	private String bobot;

	@Column(name = "Target", nullable = true, length = 10)
	@Caption(value = "Target")
	private String target;

	public Byte getqRincianKegiatan() {
		return qRincianKegiatan;
	}

	public void setqRincianKegiatan(Byte qRincianKegiatan) {
		this.qRincianKegiatan = qRincianKegiatan;
	}

	public String getBobot() {
		return bobot;
	}

	public void setBobot(String bobot) {
		this.bobot = bobot;
	}

	public String getTarget() {
		return target;
	}

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

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

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectMapJabatanToUraianTugasFk")
	@Caption(value = "ObjectMapJabatanToUraianTugasFk")
	private MapJabatanToUraianTugas mapJabatanToUraianTugas;

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

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectPelaksanaanTugasFk")
	@Caption(value = "ObjectPelaksanaanTugasFk")
	private PelaksanaanTugas pelaksanaanTugas;

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

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

	public Integer getId() {

		return id;
	}

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