package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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 javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "MappingPegawaiToAtasan_m")
public class MappingPegawaiToAtasan extends BaseMaster{
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.MappingPegawaiToAtasan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.MappingPegawaiToAtasan_m_id_seq", sequenceName = "public.MappingPegawaiToAtasan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@NotNull(message="Object Pegawai Harus Diisi")
	@Caption(value="Object Pegawai")
	private Pegawai pegawai;
	
	@ManyToOne
	@JoinColumn(name = "ObjectAtasanLangsungFk")
	@NotNull(message="ObjectatasanLangsung Harus Diisi")
	@Caption(value="ObjectatasanLangsung")
	private Pegawai atasanLangsung;
	
	@ManyToOne
	@JoinColumn(name = "ObjectAtasanPejabatPenilaiFk")
	@NotNull(message="Object AtasanPejabatPenilai Harus Diisi")
	@Caption(value="ObjectAtasanPejabatPenilai")
	private Pegawai atasanPejabatPenilai;
	
	@Column(name = "tglInput")
	private Date tglInput;

	public Integer getId() {
		return id;
	}

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

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	public Pegawai getAtasanLangsung() {
		return atasanLangsung;
	}

	public void setAtasanLangsung(Pegawai atasanLangsung) {
		this.atasanLangsung = atasanLangsung;
	}

	public Pegawai getAtasanPejabatPenilai() {
		return atasanPejabatPenilai;
	}

	public void setAtasanPejabatPenilai(Pegawai atasanPejabatPenilai) {
		this.atasanPejabatPenilai = atasanPejabatPenilai;
	}

	public Date getTglInput() {
		return tglInput;
	}

	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}

}
