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 TindakanMedis
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "TindakanMedis_M")
public class TindakanMedisVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDepartemenFk")
	@NotNull(message = "Object DepartemenVO Harus Diisi")
	@Caption(value = "Object Departemen")
	private DepartemenVO departemen;

	public void setDepartemen(DepartemenVO departemen) {
		this.departemen = departemen;
	}

	@Column(name = "KdDepartemen", nullable = false, length = 1)
	public DepartemenVO getDepartemen() {
		return this.departemen;
	}

	@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
	private Integer departemenId;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisTindakanMedisFk")
	@NotNull(message = "Object Jenis Tindakan Medis Harus Diisi")
	@Caption(value = "Object Jenis Tindakan Medis")
	private JenisTindakanMedisVO jenisTindakanMedis;

	public void setJenisTindakanMedis(JenisTindakanMedisVO jenisTindakanMedis) {
		this.jenisTindakanMedis = jenisTindakanMedis;
	}

	@Column(name = "KdJenisTindakanMedis", nullable = false, length = 2)
	public JenisTindakanMedisVO getJenisTindakanMedis() {
		return this.jenisTindakanMedis;
	}

	@Column(name = "ObjectJenisTindakanMedisFk", insertable = false, updatable = false)
	private Integer jenisTindakanMedisId;

	@Caption(value = "Kode Tindakan Medis")
	private String kdTindakanMedis;

	@Column(name = "KdTindakanMedis", nullable = false, length = 4)
	public String getKdTindakanMedis() {
		return kdTindakanMedis;
	}

	public void setKdTindakanMedis(String kdTindakanMedis) {
		this.kdTindakanMedis = kdTindakanMedis;
	}

	@Caption(value = "QTindakan Medis")
	private short qTindakanMedis;

	public void setqTindakanMedis(short qTindakanMedis) {
		this.qTindakanMedis = qTindakanMedis;
	}

	@Column(name = "QTindakanMedis", nullable = false)
	public short getqTindakanMedis() {
		return this.qTindakanMedis;
	}

	@Caption(value = "Tindakan Medis")
	private String namaTindakanMedis;

	public Integer getDepartemenId() {
		return departemenId;
	}

	public void setDepartemenId(Integer departemenId) {
		this.departemenId = departemenId;
	}

	public Integer getJenisTindakanMedisId() {
		return jenisTindakanMedisId;
	}

	public void setJenisTindakanMedisId(Integer jenisTindakanMedisId) {
		this.jenisTindakanMedisId = jenisTindakanMedisId;
	}

	@Column(name = "TindakanMedis", nullable = false, length = 50)
	public String getNamaTindakanMedis() {
		return namaTindakanMedis;
	}

	public void setNamaTindakanMedis(String namaTindakanMedis) {
		this.namaTindakanMedis = namaTindakanMedis;
	}

}
