package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
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;

@Entity
@Table(name="SkBiayaPegawaiPerjalananDinas_M")
public class SkBiayaPegawaiPerjalananDinas extends BaseMaster{
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.skbiayapegawaiperjalanandinas_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.skbiayapegawaiperjalanandinas_m_id_seq", sequenceName = "public.skbiayapegawaiperjalanandinas_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectPropinsiFk")
	@Caption(value="Object Propinsi")
	private Propinsi propinsi;
	
	@Column(name="ObjectPropinsiFk", insertable=false, updatable=false)
	private Integer propinsiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectKotaKabupatenFk")
	@Caption(value="Object KotaKabupaten")
	private KotaKabupaten kotaKabupaten;
	
	@Column(name="ObjectKotaKabupatenFk", insertable=false, updatable=false)
	private Integer kotaKabupatenId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectSatuanStandarFk")
	@Caption(value="Object SatuanStandar")
	private SatuanStandar satuanStandar;
	
	@Column(name="ObjectSatuanStandarFk", insertable=false, updatable=false)
	private Integer satuanStandarId;
	
	@Column(name = "FactorRate")
	@Caption(value = "Factor Rate")
	private Float factorRate;
	
	@Column(name = "OperatorFactorRate")
	@Caption(value = "Operator Factor Rate")
	private String operatorFactorRate;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectGolonganFk")
	@Caption(value="Object Golongan")
	private Golongan golongan;
	
	@Column(name="ObjectGolonganFk", insertable=false, updatable=false)
	private Integer golonganId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectEselonFk")
	@Caption(value="Object Eselon")
	private Eselon eselon;
	
	@Column(name="ObjectEselonFk", insertable=false, updatable=false)
	private Integer eselonId;
	
	@Column(name = "Harga1")
	@Caption(value = "Harga1")
	private Double harga1;
	
	@Column(name = "Harga2")
	@Caption(value = "Harga2")
	private Double harga2;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectKomponenHargaFk")
	@Caption(value="Object KomponenHarga")
	private KomponenHarga komponenHarga;
	
	@Column(name="ObjectKomponenHargaFk", insertable=false, updatable=false)
	private Integer komponenHargaId;

	public Integer getId() {
		return id;
	}

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

	public Propinsi getPropinsi() {
		return propinsi;
	}

	public void setPropinsi(Propinsi propinsi) {
		this.propinsi = propinsi;
	}

	public Integer getPropinsiId() {
		return propinsiId;
	}

	public void setPropinsiId(Integer propinsiId) {
		this.propinsiId = propinsiId;
	}

	public KotaKabupaten getKotaKabupaten() {
		return kotaKabupaten;
	}

	public void setKotaKabupaten(KotaKabupaten kotaKabupaten) {
		this.kotaKabupaten = kotaKabupaten;
	}

	public Integer getKotaKabupatenId() {
		return kotaKabupatenId;
	}

	public void setKotaKabupatenId(Integer kotaKabupatenId) {
		this.kotaKabupatenId = kotaKabupatenId;
	}

	public SatuanStandar getSatuanStandar() {
		return satuanStandar;
	}

	public void setSatuanStandar(SatuanStandar satuanStandar) {
		this.satuanStandar = satuanStandar;
	}

	public Integer getSatuanStandarId() {
		return satuanStandarId;
	}

	public void setSatuanStandarId(Integer satuanStandarId) {
		this.satuanStandarId = satuanStandarId;
	}

	public Float getFactorRate() {
		return factorRate;
	}

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

	public String getOperatorFactorRate() {
		return operatorFactorRate;
	}

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

	public Golongan getGolongan() {
		return golongan;
	}

	public void setGolongan(Golongan golongan) {
		this.golongan = golongan;
	}

	public Integer getGolonganId() {
		return golonganId;
	}

	public void setGolonganId(Integer golonganId) {
		this.golonganId = golonganId;
	}

	public Eselon getEselon() {
		return eselon;
	}

	public void setEselon(Eselon eselon) {
		this.eselon = eselon;
	}

	public Integer getEselonId() {
		return eselonId;
	}

	public void setEselonId(Integer eselonId) {
		this.eselonId = eselonId;
	}

	public Double getHarga1() {
		return harga1;
	}

	public void setHarga1(Double harga1) {
		this.harga1 = harga1;
	}

	public Double getHarga2() {
		return harga2;
	}

	public void setHarga2(Double harga2) {
		this.harga2 = harga2;
	}

	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;
	}

}
