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 javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity // @Audited
@Table(name = "RawatKhusus_T")
public class RawatKhusus extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "PerencanaanAnestesiFk")
	@NotNull(message = "Perencanaan Anestesi tidak boleh kosong")
	private PerencanaanAnestesi perencanaanAnestesi;

	@Column(name = "PerencanaanAnestesiFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String perencanaanAnestesiId;

	@ManyToOne
	@JoinColumn(name = "RawatKhususDetailFk")
	@NotNull(message = "Rawat Khusus Detail tidak boleh kosong")
	private RawatKhususDetail rawatKhususDetail;

	@Column(name = "RawatKhususDetailFk", insertable = false, updatable = false)
	private Integer rawatKhususDetailId;

	@NotNull(message = "Is Nilai tidak boleh kosong")
	@Column(name = "isNilai")
	@Caption(value = "Is Nilai")
	private Boolean isNilai;

	public Boolean getIsNilai() {
		return isNilai;
	}

	public void setIsNilai(Boolean isNilai) {
		this.isNilai = isNilai;
	}

	public PerencanaanAnestesi getPerencanaanAnestesi() {
		return perencanaanAnestesi;
	}

	public void setPerencanaanAnestesi(PerencanaanAnestesi perencanaanAnestesi) {
		this.perencanaanAnestesi = perencanaanAnestesi;
	}

	public String getPerencanaanAnestesiId() {
		return perencanaanAnestesiId;
	}

	public void setPerencanaanAnestesiId(String perencanaanAnestesiId) {
		this.perencanaanAnestesiId = perencanaanAnestesiId;
	}

	public RawatKhususDetail getRawatKhususDetail() {
		return rawatKhususDetail;
	}

	public void setRawatKhususDetail(RawatKhususDetail rawatKhususDetail) {
		this.rawatKhususDetail = rawatKhususDetail;
	}

	public Integer getRawatKhususDetailId() {
		return rawatKhususDetailId;
	}

	public void setRawatKhususDetailId(Integer rawatKhususDetailId) {
		this.rawatKhususDetailId = rawatKhususDetailId;
	}

 
}