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 MapDiagnosaKepToAsKepIntervensi
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapDiagnosaKepToAsKepIntervensi_M")
public class MapDiagnosaKepToAsKepIntervensiVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaKepFk")
	@NotNull(message="Object DiagnosaVO Kep Harus Diisi")
	@Caption(value="Object DiagnosaVO Kep")
	private DiagnosaVO diagnosaKep;

	public void setDiagnosaKep(DiagnosaVO diagnosaKep) {
		this.diagnosaKep = diagnosaKep;
	}

	@Column(name = "KdDiagnosaKep", nullable = false , length = 10)
	public DiagnosaVO getDiagnosaKep(){
		return this.diagnosaKep;
	}

	@Column(name = "ObjectDiagnosaKepFk", insertable=false,updatable=false)
	private Integer diagnosaKepId;

	@ManyToOne
	@JoinColumn(name = "ObjectIntervensiFk")
	@NotNull(message="Object Intervensi Harus Diisi")
	@Caption(value="Object Intervensi")
	private AsKepIntervensiVO intervensi;

	public void setIntervensi(AsKepIntervensiVO intervensi) {
		this.intervensi = intervensi;
	}

	@Column(name = "KdIntervensi", nullable = false )
	public AsKepIntervensiVO getIntervensi(){
		return this.intervensi;
	}

	@Column(name = "ObjectIntervensiFk", insertable=false,updatable=false)
	private Integer intervensiId;


}

