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 = "PegawaiStrukturGajiByGolMakan_M")
public class PegawaiStrukturGajiByGolongan extends BaseMaster {
	
    @ManyToOne
    @JoinColumn(name = "golonganPegawaifk")
    @Caption(value="Golongan Pegawai") 
    private Golongan golonganPegawai;
	
	@Column(name = "golonganPegawaifk", insertable = false, updatable = false, nullable=false)
	private Integer golonganPegawaiId;

    @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 Golongan getGolonganPegawai() {
		return golonganPegawai;
	}

	public void setGolonganPegawai(Golongan golonganPegawai) {
		this.golonganPegawai = golonganPegawai;
	}

	public Integer getGolonganPegawaiId() {
		return golonganPegawaiId;
	}

	public void setGolonganPegawaiId(Integer golonganPegawaiId) {
		this.golonganPegawaiId = golonganPegawaiId;
	}

	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.pegawaistrukturgajibygolmakan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.pegawaistrukturgajibygolmakan_m_id_seq", sequenceName = "public.pegawaistrukturgajibygolmakan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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