package com.jasamedika.medifirst2000.entities;

import java.math.BigDecimal;

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="PegawaiHistoriRekapGaji_T")
public class PegawaiHistoriRekapGaji extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "noHistoriFK")
	@NotNull(message = "noHistori Harus Diisi")
	@Caption(value = "noHistori")
	private StrukHistori strukHistory;
	
	@Column(name = "noHistoriFK", columnDefinition = "CHAR(32)", insertable = false, updatable = false,nullable = false)
	private String strukHistoryId;
	
	@ManyToOne
	@JoinColumn(name = "PegawaiFk")
	@NotNull(message = "Pegawai Harus Diisi")
	@Caption(value = "Pegawai")
	private Pegawai pegawai;
	
	@Column(name = "PegawaiFk", insertable = false, updatable = false,nullable = false)
	private Integer pegawaiId;
	
	@ManyToOne
	@JoinColumn(name = "KomponenHargaFk")
	@NotNull(message = "Komponen Harga Harus Diisi")
	@Caption(value = "KomponenHarga")
	private KomponenHarga komponenHarga;
	
	@NotNull(message = "Harga Satuan harus diisi")
	@Column(name = "HargaSatuan")
	@Caption("Harga Satuan")
	private BigDecimal hargaSatuan;
	
	@NotNull(message = "Qty Komponen Harga harus diisi")
	@Column(name = "QtyKomponenHarga")
	@Caption("Qty Komponen Harga")
	private Integer qtyKomponenHarga;
	
	@Column(name = "NoVerifikasi")
	@Caption("Qty Komponen Harga")
	private String noVerifikasi;
	
	@Column(name = "NoClosing")
	@Caption("Qty Komponen Harga")
	private String noClosing;
	
	@Column(name = "Periode")
	@Caption("Periode")
	private String periode;
	
	public StrukHistori getStrukHistory() {
		return strukHistory;
	}

	public void setStrukHistory(StrukHistori strukHistory) {
		this.strukHistory = strukHistory;
	}

	public String getStrukHistoryId() {
		return strukHistoryId;
	}

	public void setStrukHistoryId(String strukHistoryId) {
		this.strukHistoryId = strukHistoryId;
	}

	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 KomponenHarga getKomponenHarga() {
		return komponenHarga;
	}

	public void setKomponenHarga(KomponenHarga komponenHarga) {
		this.komponenHarga = komponenHarga;
	}

	public BigDecimal getHargaSatuan() {
		return hargaSatuan;
	}

	public void setHargaSatuan(BigDecimal hargaSatuan) {
		this.hargaSatuan = hargaSatuan;
	}

	public Integer getQtyKomponenHarga() {
		return qtyKomponenHarga;
	}

	public void setQtyKomponenHarga(Integer qtyKomponenHarga) {
		this.qtyKomponenHarga = qtyKomponenHarga;
	}

	public String getNoVerifikasi() {
		return noVerifikasi;
	}

	public void setNoVerifikasi(String noVerifikasi) {
		this.noVerifikasi = noVerifikasi;
	}

	public String getNoClosing() {
		return noClosing;
	}

	public void setNoClosing(String noClosing) {
		this.noClosing = noClosing;
	}

	public String getPeriode() {
		return periode;
	}

	public void setPeriode(String periode) {
		this.periode = periode;
	}

}
