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

@Entity
@Table(name = "ProfileHistoriAwards_T")
public class ProfileHistoriAwards extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "noHistoriFk")
	@Caption(value="noHistoriFk")
	private StrukHistori strukHistori;

	@Column(name = "noHistoriFk", insertable=false,updatable=false,nullable=false)
	private String strukHistoriId;

	@ManyToOne
	@JoinColumn(name = "awardsFk")
	@Caption(value="awardsFk")
	private Awards awards;

	@Column(name = "awardsFk", insertable=false,updatable=false,nullable=false)
	private Integer awardsId;

	@Column(name = "deskripsiAwards", nullable = false)
	@Caption(value = "deskripsi Awards")
	private String deskripsiAwards;
	
	@ManyToOne
	@JoinColumn(name = "pegawaiPenerimaFk")
	@Caption(value="pegawaiPenerimaFk")
	private Pegawai pegawaiPenerima;

	@Column(name = "pegawaiPenerimaFk", insertable=false,updatable=false,nullable=true)
	private Integer pegawaiPenerimaId;

	@Column(name = "tglAwardsTerima", nullable = true)
	@Caption(value = "tglAwardsTerima")
	private Date tglAwardsTerima;
	
	@ManyToOne
	@JoinColumn(name = "rekananPemberiFk")
	@Caption(value="rekananPemberiFk")
	private Rekanan rekananPemberi;

	@Column(name = "rekananPemberiFk", insertable=false,updatable=false,nullable=true)
	private Integer rekananPemberiId;

	@ManyToOne
	@JoinColumn(name = "pegawaiPemberiFk")
	@Caption(value="pegawaiPemberiFk")
	private Pegawai pegawaiPemberi;

	@Column(name = "pegawaiPemberiFk", insertable=false,updatable=false,nullable=true)
	private Integer pegawaiPemberiId;

	@ManyToOne
	@JoinColumn(name = "departemenTujuanFk")
	@Caption(value="departemenTujuanFk")
	private Departemen departemenTujuan;

	@Column(name = "departemenTujuanFk", insertable=false,updatable=false,nullable=true)
	private Integer departemenTujuanId;
	
	@ManyToOne
	@JoinColumn(name = "ruanganTujuanFk")
	@Caption(value="ruanganTujuanFk")
	private Ruangan ruanganTujuan;

	@Column(name = "ruanganTujuanFk", insertable=false,updatable=false,nullable=true)
	private Integer ruanganTujuanId;

	@ManyToOne
	@JoinColumn(name = "alamatTerimaFk")
	@Caption(value="alamatTerimaFk")
	private Alamat alamatTerima;

	@Column(name = "alamatTerimaFk", insertable=false,updatable=false,nullable=true)
	private Integer alamatTerimaId;

	@Caption(value="Keterangan Lainnya")
	@Column(name = "keteranganLainnya", nullable = true)
	private String keteranganLainnya;

	public StrukHistori getStrukHistori() {
		return strukHistori;
	}

	public void setStrukHistori(StrukHistori strukHistori) {
		this.strukHistori = strukHistori;
	}

	public String getStrukHistoriId() {
		return strukHistoriId;
	}

	public void setStrukHistoriId(String strukHistoriId) {
		this.strukHistoriId = strukHistoriId;
	}

	public Awards getAwards() {
		return awards;
	}

	public void setAwards(Awards awards) {
		this.awards = awards;
	}

	public Integer getAwardsId() {
		return awardsId;
	}

	public void setAwardsId(Integer awardsId) {
		this.awardsId = awardsId;
	}

	public String getDeskripsiAwards() {
		return deskripsiAwards;
	}

	public void setDeskripsiAwards(String deskripsiAwards) {
		this.deskripsiAwards = deskripsiAwards;
	}

	public Pegawai getPegawaiPenerima() {
		return pegawaiPenerima;
	}

	public void setPegawaiPenerima(Pegawai pegawaiPenerima) {
		this.pegawaiPenerima = pegawaiPenerima;
	}

	public Integer getPegawaiPenerimaId() {
		return pegawaiPenerimaId;
	}

	public void setPegawaiPenerimaId(Integer pegawaiPenerimaId) {
		this.pegawaiPenerimaId = pegawaiPenerimaId;
	}

	public Date getTglAwardsTerima() {
		return tglAwardsTerima;
	}

	public void setTglAwardsTerima(Date tglAwardsTerima) {
		this.tglAwardsTerima = tglAwardsTerima;
	}

	public Rekanan getRekananPemberi() {
		return rekananPemberi;
	}

	public void setRekananPemberi(Rekanan rekananPemberi) {
		this.rekananPemberi = rekananPemberi;
	}

	public Integer getRekananPemberiId() {
		return rekananPemberiId;
	}

	public void setRekananPemberiId(Integer rekananPemberiId) {
		this.rekananPemberiId = rekananPemberiId;
	}

	public Pegawai getPegawaiPemberi() {
		return pegawaiPemberi;
	}

	public void setPegawaiPemberi(Pegawai pegawaiPemberi) {
		this.pegawaiPemberi = pegawaiPemberi;
	}

	public Integer getPegawaiPemberiId() {
		return pegawaiPemberiId;
	}

	public void setPegawaiPemberiId(Integer pegawaiPemberiId) {
		this.pegawaiPemberiId = pegawaiPemberiId;
	}

	public Departemen getDepartemenTujuan() {
		return departemenTujuan;
	}

	public void setDepartemenTujuan(Departemen departemenTujuan) {
		this.departemenTujuan = departemenTujuan;
	}

	public Integer getDepartemenTujuanId() {
		return departemenTujuanId;
	}

	public void setDepartemenTujuanId(Integer departemenTujuanId) {
		this.departemenTujuanId = departemenTujuanId;
	}

	public Ruangan getRuanganTujuan() {
		return ruanganTujuan;
	}

	public void setRuanganTujuan(Ruangan ruanganTujuan) {
		this.ruanganTujuan = ruanganTujuan;
	}

	public Integer getRuanganTujuanId() {
		return ruanganTujuanId;
	}

	public void setRuanganTujuanId(Integer ruanganTujuanId) {
		this.ruanganTujuanId = ruanganTujuanId;
	}

	public Alamat getAlamatTerima() {
		return alamatTerima;
	}

	public void setAlamatTerima(Alamat alamatTerima) {
		this.alamatTerima = alamatTerima;
	}

	public Integer getAlamatTerimaId() {
		return alamatTerimaId;
	}

	public void setAlamatTerimaId(Integer alamatTerimaId) {
		this.alamatTerimaId = alamatTerimaId;
	}

	public String getKeteranganLainnya() {
		return keteranganLainnya;
	}

	public void setKeteranganLainnya(String keteranganLainnya) {
		this.keteranganLainnya = keteranganLainnya;
	}
}
