package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
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="MapStatusKeputusanToGawatDarurat_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class MapStatusKeputusanToGawatDarurat extends BaseTransaction{

	@ManyToOne
	@Caption(value = "Object gawat Darurat")
	@JoinColumn(name = "ObjectGawatDaruratFk")
	private GawatDarurat gawatDarurat;
	
	@Column(name = "ObjectGawatDaruratFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String gawatDaruratId;
	
	@ManyToOne
	@Caption(value = "Object Status Keputusan")
	@JoinColumn(name = "ObjectStatusKeputusanFk")
	private StatusKeputusan statusKeputusan;
	
	@Column(name = "ObjectStatusKeputusanFk", insertable = false, updatable = false, nullable = true)
	private Integer statusKeputusanId;

	public GawatDarurat getGawatDarurat() {
		return gawatDarurat;
	}

	public void setGawatDarurat(GawatDarurat gawatDarurat) {
		this.gawatDarurat = gawatDarurat;
	}

	public String getGawatDaruratId() {
		return gawatDaruratId;
	}

	public void setGawatDaruratId(String gawatDaruratId) {
		this.gawatDaruratId = gawatDaruratId;
	}

	public StatusKeputusan getStatusKeputusan() {
		return statusKeputusan;
	}

	public void setStatusKeputusan(StatusKeputusan statusKeputusan) {
		this.statusKeputusan = statusKeputusan;
	}

	public Integer getStatusKeputusanId() {
		return statusKeputusanId;
	}

	public void setStatusKeputusanId(Integer statusKeputusanId) {
		this.statusKeputusanId = statusKeputusanId;
	}
	
	
}
