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;

/**
 * class PermohonanCutiPegawai
 * 
 * @author Generator
 */
@Entity
@Table(name = "sdm_PermohonanCutiPegawai_T")
public class PermohonanCutiPegawai extends BaseTransaction {
	@Column(name = "NomorPermohonan", nullable = false, length = 100)
	@Caption(value = "NomorPermohonan")
	private String nomorPermohonan;

	public String getNomorPermohonan() {
		return nomorPermohonan;
	}

	public void setNomorPermohonan(String nomorPermohonan) {
		this.nomorPermohonan = nomorPermohonan;
	}

	@ManyToOne
	@JoinColumn(name = "Pegawai")
	@NotNull(message = "Pegawai Harus Diisi")
	@Caption(value = "Pegawai")
	private Pegawai pegawai;

	@Column(name = "Pegawai", insertable = false, updatable = false)
	private Integer pegawaiId;

	@Column(name = "PolaJadwal", nullable = false, length = 100)
	@Caption(value = "PolaJadwal")
	private String polaJadwal;

	public String getPolaJadwal() {
		return polaJadwal;
	}

	public void setPolaJadwal(String polaJadwal) {
		this.polaJadwal = polaJadwal;
	}

	@ManyToOne
	@JoinColumn(name = "JenisCutiFk")
	@NotNull(message = "Jenis Cuti Harus Diisi")
	@Caption(value = "Jenis Cuti")
	private JenisCuti jenisCuti;

	public JenisCuti getJenisCuti() {
		return jenisCuti;
	}

	public void setJenisCuti(JenisCuti jenisCuti) {
		this.jenisCuti = jenisCuti;
	}

	@Column(name = "JenisCutiFk", insertable = false, updatable = false)
	private Integer jenisCutiId;

	@Column(name = "Tahun", nullable = false, length = 100)
	@Caption(value = "Tahun")
	private Integer tahun;

	public Integer getTahun() {
		return tahun;
	}

	public void setTahun(Integer tahun) {
		this.tahun = tahun;
	}

	@Column(name = "JatahCuti", nullable = false, length = 100)
	@Caption(value = "JatahCuti")
	private Integer jatahCuti;

	public Integer getJatahCuti() {
		return jatahCuti;
	}

	public void setJatahCuti(Integer jatahCuti) {
		this.jatahCuti = jatahCuti;
	}

	@Column(name = "TanggalAwalCuti", nullable = false, length = 100)
	@Caption(value = "TanggalAwalCuti")
	private Date tanggalAwalCuti;

	public Date getTanggalAwalCuti() {
		return tanggalAwalCuti;
	}

	public void setTanggalAwalCuti(Date tanggalAwalCuti) {
		this.tanggalAwalCuti = tanggalAwalCuti;
	}

	@Column(name = "TanggalAkhirCuti", nullable = false, length = 100)
	@Caption(value = "TanggalAkhirCuti")
	private Date tanggalAkhirCuti;

	public Date getTanggalAkhirCuti() {
		return tanggalAkhirCuti;
	}

	public void setTanggalAkhirCuti(Date tanggalAkhirCuti) {
		this.tanggalAkhirCuti = tanggalAkhirCuti;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

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

	@Column(name = "JumlahHari", nullable = false, length = 100)
	@Caption(value = "JumlahHari")
	private Integer jumlahHari;

	public Integer getJumlahHari() {
		return jumlahHari;
	}

	public void setJumlahHari(Integer jumlahHari) {
		this.jumlahHari = jumlahHari;
	}

	@Column(name = "SisaCuti", nullable = false, length = 100)
	@Caption(value = "SisaCuti")
	private Integer sisaCuti;

	public Integer getSisaCuti() {
		return sisaCuti;
	}

	public void setSisaCuti(Integer sisaCuti) {
		this.sisaCuti = sisaCuti;
	}

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

	public String getKeterangan() {
		return keterangan;
	}

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

}