package com.jasamedika.medifirst2000.vo;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class HVAVO extends BaseTransactionVO{
	
	@Caption(value="periodeTahun")
	@Column(name="periodeTahun")
	private Long periodeTahun;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object Jenis HVA")
	private JenisHVAVO jenisHVA;
	
	@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="hva")
	private Set<DetailHVAVO> detailHVA = new HashSet<>();
	
	public Long getPeriodeTahun() {
		return periodeTahun;
	}

	public void setPeriodeTahun(Long periodeTahun) {
		this.periodeTahun = periodeTahun;
	}

	public JenisHVAVO getJenisHVA() {
		return jenisHVA;
	}

	public void setJenisHVA(JenisHVAVO jenisHVA) {
		this.jenisHVA = jenisHVA;
	}

	public Set<DetailHVAVO> getDetailHVA() {
		return detailHVA;
	}

	public void setDetailHVA(Set<DetailHVAVO> detailHVA) {
		this.detailHVA = detailHVA;
	}

}
