package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name="ObservasiTransaksi_T")
public class ObservasiTransaksi extends BaseTransaction{
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object No Registrasi")
	@JoinColumn(name="ObjectNoRegistrasiFk")
	private PasienDaftar noRegistrasi;
	
	@Column(name="ObjectNoRegistrasiFk", insertable=false, updatable=false, nullable=true)
	private String  noRegistrasiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Head Observasi")
	@JoinColumn(name="Observasifk")
	private Observasi observasi;
	
	@Column(name="Observasifk", insertable=false, updatable=false, nullable=true)
	private Integer observasiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="JenisObservasi")
	@JoinColumn(name="JenisObservasifk")
	private JenisObservasi jenisObservasi;
	
	@Column(name="JenisObservasifk", insertable=false, updatable=false, nullable=true)
	private Integer jenisObservasiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Pegawai")
	@JoinColumn(name="Pegawaifk")
	private Pegawai pegawai;
	
	@Column(name="Pegawaifk", insertable=false, updatable=false, nullable=true)
	private Integer pegawaiId;
	
	@Caption(value="tglInput ")
	@Column(name="tglInput ", nullable=true)
	private Date tglInput ;
	
	@Caption(value="tglObservasi ")
	@Column(name="tglObservasi ", nullable=true)
	private Date tglObservasi ;	
	
	@Caption(value="valueI")
	@Column(name="valueI", nullable=true)
	private String valueI ;
	
	@Caption(value="valueII")
	@Column(name="valueII", nullable=true)
	private String valueII ;

	public PasienDaftar getNoRegistrasi() {
		return noRegistrasi;
	}

	public void setNoRegistrasi(PasienDaftar noRegistrasi) {
		this.noRegistrasi = noRegistrasi;
	}

	public String getNoRegistrasiId() {
		return noRegistrasiId;
	}

	public void setNoRegistrasiId(String noRegistrasiId) {
		this.noRegistrasiId = noRegistrasiId;
	}

	public Observasi getObservasi() {
		return observasi;
	}

	public void setObservasi(Observasi observasi) {
		this.observasi = observasi;
	}

	public Integer getObservasiId() {
		return observasiId;
	}

	public void setObservasiId(Integer observasiId) {
		this.observasiId = observasiId;
	}

	public JenisObservasi getJenisObservasi() {
		return jenisObservasi;
	}

	public void setJenisObservasi(JenisObservasi jenisObservasi) {
		this.jenisObservasi = jenisObservasi;
	}

	public Integer getJenisObservasiId() {
		return jenisObservasiId;
	}

	public void setJenisObservasiId(Integer jenisObservasiId) {
		this.jenisObservasiId = jenisObservasiId;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public Date getTglInput() {
		return tglInput;
	}

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

	public Date getTglObservasi() {
		return tglObservasi;
	}

	public void setTglObservasi(Date tglObservasi) {
		this.tglObservasi = tglObservasi;
	}

	public String getValueI() {
		return valueI;
	}

	public void setValueI(String valueI) {
		this.valueI = valueI;
	}

	public String getValueII() {
		return valueII;
	}

	public void setValueII(String valueII) {
		this.valueII = valueII;
	}

}
