package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@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)
	private Integer statusKeputusanId;

}
