package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "DisposisiJabatan_T")
public class DisposisiJabatan extends BaseTransaction {
	
	@JsonBackReference
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectDisposisiFk")
	@Caption(value="disposisi")
	private Disposisi disposisi;
	
	@Column(name = "ObjectDisposisiFk", insertable=false,updatable=false, nullable = true)
	private String disposisiId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectJabatanFk")
	@Caption(value="jabatan")
	private Jabatan jabatan;
	
	@Column(name = "ObjectJabatanFk", insertable=false,updatable=false, nullable = true)
	private Integer jabatanId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value="pegawai")
	private Pegawai pegawai;
	
	@Column(name = "ObjectPegawaiFk", insertable=false,updatable=false, nullable = true)
	private Integer pegawaiId;
	

	public Jabatan getJabatan() {
		return jabatan;
	}

	public void setJabatan(Jabatan jabatan) {
		this.jabatan = jabatan;
	}

	public Integer getJabatanId() {
		return jabatanId;
	}

	public void setJabatanId(Integer jabatanId) {
		this.jabatanId = jabatanId;
	}

	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 Disposisi getDisposisi() {
		return disposisi;
	}

	public void setDisposisi(Disposisi disposisi) {
		this.disposisi = disposisi;
	}

	public String getDisposisiId() {
		return disposisiId;
	}

	public void setDisposisiId(String disposisiId) {
		this.disposisiId = disposisiId;
	}

	
	
}
