package com.jasamedika.medifirst2000.entities;

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 com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class PegawaiStrukturGajiByMaKaPe
 * 
 * @author Generator
 */
@Entity 
@Table(name = "PegawaiStrukturGajiByMaKaPe_M")
public class PegawaiStrukturGajiByMaKaPe extends BaseMaster {
	
    @ManyToOne
    @JoinColumn(name = "kdDetailKategoryPegawaifk")
    @Caption(value="Kategory Pegawai") 
    private DetailKategoryPegawai detailKategoriPegawai;
	
	@Column(name = "kdDetailKategoryPegawaifk", insertable = false, updatable = false, nullable=false)
	private Integer detailKategoriPegawaiId;

    @ManyToOne
    @JoinColumn(name = "kdRangeMasaKerjafk")
    @Caption(value="Masa Kerja") 
    private RangeMasaKerja rangeMasaKerja;
	
	@Column(name = "kdRangeMasaKerja", insertable = false, updatable = false, nullable=true)
	private Integer rangeMasaKerjaId;

    @ManyToOne
    @JoinColumn(name = "kdPendidikanfk")
    @Caption(value="Pendidikan") 
    private Pendidikan pendidikan;
	
	@Column(name = "kdPendidikanfk", insertable = false, updatable = false, nullable=false)
	private Integer pendidikanId;

    @ManyToOne
    @JoinColumn(name = "kdKomponenHargafk")
    @Caption(value="Komponen Harga") 
    private KomponenHarga komponenHarga;
	
	@Column(name = "kdKomponenHargafk", insertable = false, updatable = false, nullable=false)
	private Integer komponenHargaId;

	@Column(name = "HargaSatuan", nullable = false)
	@Caption(value = "Harga Satuan")
	private Double hargaSatuan;

	@Column(name = "factorRate", nullable = false)
	@Caption(value = "Factor Rate")
	private Double factorRate;
	
	@Column(name = "operatorfactorRate", nullable = false)
	@Caption(value = "Operator Factor Rate")
	private String operatorFactorRate;

	public DetailKategoryPegawai getDetailKategoriPegawai() {
		return detailKategoriPegawai;
	}

	public void setDetailKategoriPegawai(DetailKategoryPegawai detailKategoriPegawai) {
		this.detailKategoriPegawai = detailKategoriPegawai;
	}

	public Integer getDetailKategoriPegawaiId() {
		return detailKategoriPegawaiId;
	}

	public void setDetailKategoriPegawaiId(Integer detailKategoriPegawaiId) {
		this.detailKategoriPegawaiId = detailKategoriPegawaiId;
	}

	public RangeMasaKerja getRangeMasaKerja() {
		return rangeMasaKerja;
	}

	public void setRangeMasaKerja(RangeMasaKerja rangeMasaKerja) {
		this.rangeMasaKerja = rangeMasaKerja;
	}

	public Integer getRangeMasaKerjaId() {
		return rangeMasaKerjaId;
	}

	public void setRangeMasaKerjaId(Integer rangeMasaKerjaId) {
		this.rangeMasaKerjaId = rangeMasaKerjaId;
	}

	public Pendidikan getPendidikan() {
		return pendidikan;
	}

	public void setPendidikan(Pendidikan pendidikan) {
		this.pendidikan = pendidikan;
	}

	public Integer getPendidikanId() {
		return pendidikanId;
	}

	public void setPendidikanId(Integer pendidikanId) {
		this.pendidikanId = pendidikanId;
	}

	public KomponenHarga getKomponenHarga() {
		return komponenHarga;
	}

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

	public Integer getKomponenHargaId() {
		return komponenHargaId;
	}

	public void setKomponenHargaId(Integer komponenHargaId) {
		this.komponenHargaId = komponenHargaId;
	}

	public Double getHargaSatuan() {
		return hargaSatuan;
	}

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

	public Double getFactorRate() {
		return factorRate;
	}

	public void setFactorRate(Double factorRate) {
		this.factorRate = factorRate;
	}

	public String getOperatorFactorRate() {
		return operatorFactorRate;
	}

	public void setOperatorFactorRate(String operatorFactorRate) {
		this.operatorFactorRate = operatorFactorRate;
	}

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

	public Integer getId() {

		return id;
	}

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