package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

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

@Entity
@Table(name = "RiwayatJabatan_T")
public class RiwayatJabatan extends BaseTransaction {

	/**
	 * @author Shakato
	 */

	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value = "ID Pegawai")
	@NotNull(message = "ID Pegawai tidak boleh kosong")
	private Pegawai pegawai;

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

	@Column(name = "namaJabatan", nullable = true)
	@Caption(value = "Nama Jabatan")
	private String namaJabatan;

	@Column(name = "noSK", nullable = true)
	@Caption(value = "No SK")
	private String noSK;

	@Column(name = "tglSK", nullable = true)
	@Caption(value = "Tanggal SK")
	private Date tglSK;

	@Column(name = "ttdSK", nullable = true)
	@Caption(value = "Tanda Tangan SK")
	private String ttdSK;

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

	@ManyToOne
	@JoinColumn(name = "ObjectJabatanFk")
	@Caption(value = "ID Jabatan Pegawai")
	@NotNull(message = "ID Jabatan Pegawai tidak boleh kosong")
	private Jabatan jabatan;

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

	@Column(name = "tertandaPegawaiSk", nullable = true)
	@Caption(value = "Tertanda Pegawai SK")
	private String ttdPegawaiSk;

	@Column(name = "tertandaJabatanSk", nullable = true)
	@Caption(value = "Tertanda Pegawai SK")
	private String ttdJabatanSk;
	
	@Column(name = "sumberdata", nullable = true)
	@Caption(value = "Sumber Data")
	private Integer sumberData;

	public String getNamaJabatan() {
		return namaJabatan;
	}

	public void setNamaJabatan(String namaJabatan) {
		this.namaJabatan = namaJabatan;
	}

	public String getNoSK() {
		return noSK;
	}

	public void setNoSK(String noSK) {
		this.noSK = noSK;
	}

	public Date getTglSK() {
		return tglSK;
	}

	public void setTglSK(Date tglSK) {
		this.tglSK = tglSK;
	}

	public String getTtdSK() {
		return ttdSK;
	}

	public void setTtdSK(String ttdSK) {
		this.ttdSK = ttdSK;
	}

	public String getKeterangan() {
		return keterangan;
	}

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

	public Pegawai getPegawai() {
		return pegawai;
	}

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

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public Jabatan getJabatan() {
		return jabatan;
	}

	public Integer getJabatanId() {
		return jabatanId;
	}

	public void setJabatan(Jabatan jabatan) {
		this.jabatan = jabatan;
	}

	public void setJabatanId(Integer jabatanId) {
		this.jabatanId = jabatanId;
	}

	public String getTtdPegawaiSk() {
		return ttdPegawaiSk;
	}

	public void setTtdPegawaiSk(String ttdPegawaiSk) {
		this.ttdPegawaiSk = ttdPegawaiSk;
	}

	public String getTtdJabatanSk() {
		return ttdJabatanSk;
	}

	public void setTtdJabatanSk(String ttdJabatanSk) {
		this.ttdJabatanSk = ttdJabatanSk;
	}

	public Integer getSumberData() {
		return sumberData;
	}

	public void setSumberData(Integer sumberData) {
		this.sumberData = sumberData;
	}

}