package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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

@Entity
@Table(name="JadwalDpjpRawatInap_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class JadwalDpjpRawatInap extends BaseTransaction{

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectRuanganFk")
	@Caption(value = "Object Ruangan")
	private Ruangan ruangan;

	@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
	private Integer ruanganId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectDokterFk")
	@Caption(value = "Object Dokter")
	private Pegawai dokter;

	@Column(name = "ObjectDokterFk", insertable = false, updatable = false)
	private Integer dokterId;
	
	@Column(name = "TglAwal", nullable = true)
	@Caption(value = "Tgl Awal")
	private Date tglAwal;
	
	@Column(name = "TglAhir", nullable = true)
	@Caption(value = "Tgl Ahir")
	private Date tglAhir;

	public Ruangan getRuangan() {
		return ruangan;
	}

	public void setRuangan(Ruangan ruangan) {
		this.ruangan = ruangan;
	}

	public Integer getRuanganId() {
		return ruanganId;
	}

	public void setRuanganId(Integer ruanganId) {
		this.ruanganId = ruanganId;
	}

	public Pegawai getDokter() {
		return dokter;
	}

	public void setDokter(Pegawai dokter) {
		this.dokter = dokter;
	}

	public Integer getDokterId() {
		return dokterId;
	}

	public void setDokterId(Integer dokterId) {
		this.dokterId = dokterId;
	}

	public Date getTglAwal() {
		return tglAwal;
	}

	public void setTglAwal(Date tglAwal) {
		this.tglAwal = tglAwal;
	}

	public Date getTglAhir() {
		return tglAhir;
	}

	public void setTglAhir(Date tglAhir) {
		this.tglAhir = tglAhir;
	}
	
}
