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;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name="soap_t")
public class Soap extends BaseTransaction{
	
	@ManyToOne
	@JoinColumn(name = "NoRegistrasiFk")
	@NotNull(message="No Registrasi Harus Diisi")
	@Caption(value="No Registrasi")
	private AntrianPasienDiPeriksa pasienDaftar;

	@Column(name = "NoRegistrasiFk", insertable=false,updatable=false,nullable=false)
	private String pasienDaftarId;

	@Column(name = "s")
	@Caption(value = "s")
	private String s;

	@Column(name = "o")
	@Caption(value = "o")
	private String o;

	@Column(name = "a")
	@Caption(value = "a")
	private String a;
	
	@Column(name = "p")
	@Caption(value = "p")
	private String p;
	
	@NotNull(message = "Tgl Input tidak boleh kosong")
	@Column(name = "tglInput", nullable = false)
	@Caption(value = "Tgl Input")
	private Date tglInput;
	
	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value="ObjectPegawaiFk")
	private Pegawai pegawai;
	
	@Column(name = "ObjectPegawaiFk", insertable=false,updatable=false,nullable=true)
	private Integer pegawaiId;

	@Column(name = "isVerifikasi", nullable = true)
	@Caption(value = "isVerifikasi")
	private Boolean isVerifikasi;

	public void setS(String s) {
		this.s = s;
	}
	public String getO() {
		return o;
	}
	public void setO(String o) {
		this.o = o;
	}
	public String getA() {
		return a;
	}
	public void setA(String a) {
		this.a = a;
	}
	public String getP() {
		return p;
	}
	public void setP(String p) {
		this.p = p;
	}
	public Date getTglInput() {
		return tglInput;
	}
	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}

	public AntrianPasienDiPeriksa getPasienDaftar() {
		return pasienDaftar;
	}
	public void setPasienDaftar(AntrianPasienDiPeriksa pasienDaftar) {
		this.pasienDaftar = pasienDaftar;
	}
	public Pegawai getPegawai() {
		return pegawai;
	}
	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}
	public String getS() {
		return s;
	}
	public Boolean getIsVerifikasi() {
		return isVerifikasi;
	}
	public void setIsVerifikasi(Boolean isVerifikasi) {
		this.isVerifikasi = isVerifikasi;
	}

}
