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 DiagnosaTindakan
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "DiagnosaTindakan_M")
public class DiagnosaTindakanVO extends BaseMasterVO {
	@Caption(value="DiagnosaVO Tindakan")
	private String namaDiagnosaTindakan;

	@Column(name = "DiagnosaTindakan", nullable = false , length = 150)
	public String getNamaDiagnosaTindakan() {
		return namaDiagnosaTindakan;
	}

	public void setNamaDiagnosaTindakan(String namaDiagnosaTindakan) {
		this.namaDiagnosaTindakan = namaDiagnosaTindakan;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaTindakanFk")
	@NotNull(message="Object DiagnosaVO Tindakan Harus Diisi")
	@Caption(value="Object DiagnosaVO Tindakan")
	private DiagnosaVO diagnosaTindakan;

	public void setDiagnosaTindakan(DiagnosaVO diagnosaTindakan) {
		this.diagnosaTindakan = diagnosaTindakan;
	}

	@Column(name = "KdDiagnosaTindakan", nullable = false , length = 10)
	public DiagnosaVO getDiagnosaTindakan(){
		return this.diagnosaTindakan;
	}

	@Column(name = "ObjectDiagnosaTindakanFk", insertable=false,updatable=false)
	private Integer diagnosaTindakanId;

	@ManyToOne
	@JoinColumn(name = "ObjectKategoryDiagnosaFk")
	@NotNull(message="Object Kategory DiagnosaVO Harus Diisi")
	@Caption(value="Object Kategory Diagnosa")
	private KategoryDiagnosaVO kategoryDiagnosa;

	public void setKategoryDiagnosa(KategoryDiagnosaVO kategoryDiagnosa) {
		this.kategoryDiagnosa = kategoryDiagnosa;
	}

	@Column(name = "KdKategoryDiagnosa", nullable = false , length = 10)
	public KategoryDiagnosaVO getKategoryDiagnosa(){
		return this.kategoryDiagnosa;
	}

	@Column(name = "ObjectKategoryDiagnosaFk", insertable=false,updatable=false)
	private Integer kategoryDiagnosaId;

	@Caption(value="QDiagnosaVO Tindakan")
	private Integer qDiagnosaTindakan;

	public void setqDiagnosaTindakan(Integer qDiagnosaTindakan) {
		this.qDiagnosaTindakan = qDiagnosaTindakan;
	}

	@Column(name = "QDiagnosaTindakan", nullable = false )
	public Integer getqDiagnosaTindakan(){
		return this.qDiagnosaTindakan;
	}


}

