package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class MapKasusPenyakitToPegawai
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapKasusPenyakitToPegawai_M")
public class MapKasusPenyakitToPegawaiVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectKasusPenyakitFk")
	@NotNull(message="Object Kasus Penyakit Harus Diisi")
	@Caption(value="Object Kasus Penyakit")
	private KasusPenyakitVO kasusPenyakit;

	public void setKasusPenyakit(KasusPenyakitVO kasusPenyakit) {
		this.kasusPenyakit = kasusPenyakit;
	}

	@Column(name = "KdKasusPenyakit", nullable = false )
	public KasusPenyakitVO getKasusPenyakit(){
		return this.kasusPenyakit;
	}

	@Column(name = "ObjectKasusPenyakitFk", insertable=false,updatable=false)
	private Integer kasusPenyakitId;

	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@NotNull(message="Object PegawaiVO Harus Diisi")
	@Caption(value="Object Pegawai")
	private PegawaiVO pegawai;

	@Column(name = "TotalNilaiScore", nullable = true )
	public PegawaiVO getPegawai() {
		return pegawai;
	}

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

	@Column(name = "ObjectPegawaiFk", insertable=false,updatable=false)
	private Integer pegawaiId;


}

