package com.jasamedika.medifirst2000.vo.custom;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;
import com.jasamedika.medifirst2000.vo.DataRujukanVO;
import com.jasamedika.medifirst2000.vo.PasienVO;

public class DataRujukanCustomVO extends BaseTransactionVO{
	
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "nocm")
	@Caption(value="")
	private Set<DataRujukanVO> dataRujukan=new HashSet<DataRujukanVO>();
	
	@ManyToOne
	@JoinColumn(name = "NoCMFk")
	@NotNull(message="No C M Harus Diisi")
	@Caption(value="No C M")
	private PasienVO pasien;
	
	
	
	
	
}
