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 = "DraftSuratRuangan_T")
public class DraftSuratRuangan extends BaseTransaction {
	
	@JsonBackReference
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectDraftSuratFk")
	@Caption(value="DraftSurat")
	private DraftSurat draftSurat;
	
	@Column(name = "ObjectDraftSuratFk", insertable=false,updatable=false, nullable = true)
	private String draftSuratId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectRuanganFk")
	@Caption(value="ruangan")
	private Ruangan ruangan;
	
	@Column(name = "ObjectRuanganFk", insertable=false,updatable=false, nullable = true)
	private Integer ruanganId;
	
	@Column(name = "isVerifikasi")
	public Boolean isVerifikasi;
	
	@Column(name = "fileName", nullable = true)
	@Caption(value="fileName")
	private String fileName;
	
	@Column(name = "status")
	public Boolean status;

	public DraftSurat getDraftSurat() {
		return draftSurat;
	}

	public void setDraftSurat(DraftSurat draftSurat) {
		this.draftSurat = draftSurat;
	}

	public String getDraftSuratId() {
		return draftSuratId;
	}

	public void setDraftSuratId(String draftSuratId) {
		this.draftSuratId = draftSuratId;
	}

	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 Boolean getIsVerifikasi() {
		return isVerifikasi;
	}

	public void setIsVerifikasi(Boolean isVerifikasi) {
		this.isVerifikasi = isVerifikasi;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	
		
}
