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 MapKasusPenyakitToDiagnosa
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapKasusPenyakitToDiagnosa_M")
public class MapKasusPenyakitToDiagnosaVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaFk")
	@NotNull(message="Object DiagnosaVO Harus Diisi")
	@Caption(value="Object Diagnosa")
	private DiagnosaVO diagnosa;

	public void setDiagnosa(DiagnosaVO diagnosa) {
		this.diagnosa = diagnosa;
	}

	@Column(name = "KdDiagnosa", nullable = false , length = 10)
	public DiagnosaVO getDiagnosa(){
		return this.diagnosa;
	}

	@Column(name = "ObjectDiagnosaFk", insertable=false,updatable=false)
	private Integer diagnosaId;

	@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;


}

