package com.jasamedika.medifirst2000.entities;

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 com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name="PerencanaanPulang_t")
public class PerencanaanPulang extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "ObjectantrianPasienDiPeriksaFk")
	@Caption(value = "Object antrianPasienDiPeriksa")
	private AntrianPasienDiPeriksa antrianPasienDiPeriksa;

	@Column(name = "ObjectantrianPasienDiPeriksaFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false,nullable=false)
	private String antrianPasienDiPeriksaId;

	@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "perencanaanPulang")
	@Caption(value = "komponenPenilaianDetailSet")
	private Set<KomponenPenilaianDetail> komponenPenilaianDetailSet=new HashSet<KomponenPenilaianDetail>();

	public AntrianPasienDiPeriksa getAntrianPasienDiPeriksa() {
		return antrianPasienDiPeriksa;
	}

	public void setAntrianPasienDiPeriksa(AntrianPasienDiPeriksa antrianPasienDiPeriksa) {
		this.antrianPasienDiPeriksa = antrianPasienDiPeriksa;
	}

	public String getAntrianPasienDiPeriksaId() {
		return antrianPasienDiPeriksaId;
	}

	public void setAntrianPasienDiPeriksaId(String antrianPasienDiPeriksaId) {
		this.antrianPasienDiPeriksaId = antrianPasienDiPeriksaId;
	}

	public Set<KomponenPenilaianDetail> getKomponenPenilaianDetailSet() {
		return komponenPenilaianDetailSet;
	}

	public void setKomponenPenilaianDetailSet(Set<KomponenPenilaianDetail> komponenPenilaianDetailSet) {
		this.komponenPenilaianDetailSet = komponenPenilaianDetailSet;
	}
	
}
