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 MapPenjaminToDokumenRegistrasi
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapPenjaminToDokumenRegistrasi_M")
public class MapPenjaminToDokumenRegistrasiVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDokumenFk")
	@NotNull(message="Object DokumenVO Harus Diisi")
	@Caption(value="Object Dokumen")
	private DokumenVO dokumen;

	public void setDokumen(DokumenVO dokumen) {
		this.dokumen = dokumen;
	}

	@Column(name = "KdDokumen", nullable = false )
	public DokumenVO getDokumen(){
		return this.dokumen;
	}

	@Column(name = "ObjectDokumenFk", insertable=false,updatable=false)
	private Integer dokumenId;

	@ManyToOne
	@JoinColumn(name = "ObjectKelompokPasienFk")
	@NotNull(message="Object Kelompok PasienVO Harus Diisi")
	@Caption(value="Object Kelompok Pasien")
	private KelompokPasienVO kelompokPasien;

	public void setKelompokPasien(KelompokPasienVO kelompokPasien) {
		this.kelompokPasien = kelompokPasien;
	}

	@Column(name = "KdKelompokPasien", nullable = false )
	public KelompokPasienVO getKelompokPasien(){
		return this.kelompokPasien;
	}

	@Column(name = "ObjectKelompokPasienFk", insertable=false,updatable=false)
	private Integer kelompokPasienId;

	@Caption(value="Kode Penjamin Pasien")
	private short kdPenjaminPasien;

	public void setKdPenjaminPasien(short kdPenjaminPasien) {
		this.kdPenjaminPasien = kdPenjaminPasien;
	}

	@Column(name = "KdPenjaminPasien", nullable = false )
	public short getKdPenjaminPasien(){
		return this.kdPenjaminPasien;
	}


}

