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="MapStatusImageToGawatDarurat_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class MapStatusImageToGawatDarurat 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 Image Gawat Darurat")
	@JoinColumn(name = "ObjectStatusImageGawatDaruratFk")
	private StatusImageGawatDarurat statusImageGawatDarurat;
	
	@Column(name = "ObjectGawatDaruratFk", insertable = false, updatable = false, nullable = false)
	private Integer statusImageGawatDaruratId;

	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 StatusImageGawatDarurat getStatusImageGawatDarurat() {
		return statusImageGawatDarurat;
	}

	public void setStatusImageGawatDarurat(StatusImageGawatDarurat statusImageGawatDarurat) {
		this.statusImageGawatDarurat = statusImageGawatDarurat;
	}

	public Integer getStatusImageGawatDaruratId() {
		return statusImageGawatDaruratId;
	}

	public void setStatusImageGawatDaruratId(Integer statusImageGawatDaruratId) {
		this.statusImageGawatDaruratId = statusImageGawatDaruratId;
	}
	
}
