package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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;

@Entity 
@Table(name="Koping_T")
public class Koping extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "ObjectPasienDaftarFk")
	@NotNull(message="PasienDaftar Harus Diisi")
	@Caption(value="PasienDaftar")
	private AntrianPasienDiPeriksa pasienDaftar;
	
	@Column(name = "ObjectPasienDaftarFk", insertable=false,updatable=false, nullable=false)
	private String pasienDaftarId;

	@NotNull(message = "Tgl Input tidak boleh kosong")
	@Column(name = "tglInput", nullable = false)
	@Caption(value = "Tgl Input")
	private Date tglInput;

	@ManyToOne
	@JoinColumn(name = "ObjectPenangananStressFk")
	@NotNull(message="Object PenangananStress Harus Diisi")
	@Caption(value="Object PenangananStress")
	private StatusPenangananStress penangananStress;
	
	@Column(name = "ObjectPenangananStressFk", insertable=false,updatable=false, nullable=false)
	private Integer penangananStressId;

	public AntrianPasienDiPeriksa getPasienDaftar() {
		return pasienDaftar;
	}

	public void setPasienDaftar(AntrianPasienDiPeriksa pasienDaftar) {
		this.pasienDaftar = pasienDaftar;
	}

	public Date getTglInput() {
		return tglInput;
	}

	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}

	public StatusPenangananStress getPenangananStress() {
		return penangananStress;
	}

	public void setPenangananStress(StatusPenangananStress penangananStress) {
		this.penangananStress = penangananStress;
	}
	
}
