package com.jasamedika.medifirst2000.vo;

import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

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

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class MasalahKeperawatanVO extends MedicalRecordTransactionVO {
	/**
	 * @author Shakato
	 */
	
	//@JsonBackReference
	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "masalahKeperawatan")
	private Set<MasalahKeperawatanDetailVO> masalahKeperawatanDetail=new HashSet<MasalahKeperawatanDetailVO>();

	@Column(name = "tglInput", nullable = true)
	@Caption(value = "Tgl Input")
	private Date tglInput;

	public Date getTglInput() {
		return tglInput;
	}

	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}

	public Set<MasalahKeperawatanDetailVO> getMasalahKeperawatanDetail() {
		return masalahKeperawatanDetail;
	}

	public void setMasalahKeperawatanDetail(Set<MasalahKeperawatanDetailVO> masalahKeperawatanDetail) {
		this.masalahKeperawatanDetail = masalahKeperawatanDetail;
	}
	
}