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 = "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;

}
