package com.jasamedika.medifirst2000.entities;

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 javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class PenangananKasus
 * 
 * @author Lukman Hakim
 */
@Entity // @Audited
@Table(name = "PenangananKasus_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class PenangananKasus extends BaseTransaction {	
 
	@NotNull(message = "No Cm Tidak Boleh Kosong")
	@Column(name = "NoCm", nullable = false)
	@Caption(value = "No CM")
	private String noCm;
   
	@NotNull(message = "No Kasus Tidak Boleh Kosong")
	@Column(name = "NoKasus", nullable = false)
	@Caption(value = "No Kasus")
	private String noKasus;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PegawaiFk")
	private Pegawai pegawai;

	@Column(name = "PegawaiFk", insertable = false, updatable = false, nullable = true)
	private Integer PegawaiFk;
	
	@Column(name = "Kegiatan", nullable = false)
	@Caption(value = "Kegiatan")
	private String kegiatan;
	
	@Column(name = "Hasil", nullable = false)
	@Caption(value = "Hasil")
	private String hasil;
	
	@Column(name = "Kesimpulan", nullable = false)
	@Caption(value = "Kesimpulan")
	private String kesimpulan;
	
	@Column(name = "Saran", nullable = false)
	@Caption(value = "saran")
	private String saran;

	public String getNoCm() {
		return noCm;
	}

	public void setNoCm(String noCm) {
		this.noCm = noCm;
	}

	public String getNoKasus() {
		return noKasus;
	}

	public void setNoKasus(String noKasus) {
		this.noKasus = noKasus;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

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

	public Integer getPegawaiFk() {
		return PegawaiFk;
	}

	public void setPegawaiFk(Integer pegawaiFk) {
		PegawaiFk = pegawaiFk;
	}

	public String getKegiatan() {
		return kegiatan;
	}

	public void setKegiatan(String kegiatan) {
		this.kegiatan = kegiatan;
	}

	public String getHasil() {
		return hasil;
	}

	public void setHasil(String hasil) {
		this.hasil = hasil;
	}

	public String getKesimpulan() {
		return kesimpulan;
	}

	public void setKesimpulan(String kesimpulan) {
		this.kesimpulan = kesimpulan;
	}

	public String getSaran() {
		return saran;
	}

	public void setSaran(String saran) {
		this.saran = saran;
	}
	
	
}