package com.jasamedika.medifirst2000.vo;

import javax.persistence.*;


import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;

import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class DataRujukanVO
 * 
 * @author Afik
 */

public class DataRujukanVO extends BaseMasterVO {
	
	@Column(name = "nama", nullable = true , length = 20)
	@Caption(value="nama")
	private String nama;
	
	@ManyToOne
	@JoinColumn(name = "NoCMFk")
	@NotNull(message="No C M Harus Diisi")
	@Caption(value="No C M")
	private PasienVO pasien;
	
	@Column(name = "NoCMFk", insertable=false,updatable=false,nullable = false)
	private Integer pasienId;

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

	public PasienVO getPasien() {
		return pasien;
	}

	public void setPasien(PasienVO pasien) {
		this.pasien = pasien;
	}

	public Integer getPasienId() {
		return pasienId;
	}

	public void setPasienId(Integer pasienId) {
		this.pasienId = pasienId;
	}
	


	
	
}

