package com.jasamedika.medifirst2000.vo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

//@Entity
//@Table(name = "MappingAlatToBundle_M")
public class MappingAlatToBundleVO extends BaseMasterVO{
	
	@ManyToOne(fetch= FetchType.LAZY)
	@JoinColumn(name = "ObjectBundleSetAlatFk")
	@Caption(value = "Object Bundle Set Alat")
	private BundleSetAlatVO bundleSetAlat;
	
	@ManyToOne(fetch= FetchType.LAZY)
	@JoinColumn(name = "ObjectAlatFk")
	@Caption(value = "Object Alat")
	private AlatVO alat;

	@Column(name = "Jumlah", nullable = true)
	@Caption(value="Jumlah")
	private Integer jumlah;
	
	@Column(name = "Satuan", nullable = true , length = 200)
	@Caption(value="Satuan")
	private String satuan;
	
	public BundleSetAlatVO getBundleSetAlat() {
		return bundleSetAlat;
	}

	public void setBundleSetAlat(BundleSetAlatVO bundleSetAlat) {
		this.bundleSetAlat = bundleSetAlat;
	}

	public Integer getJumlah() {
		return jumlah;
	}

	public void setJumlah(Integer jumlah) {
		this.jumlah = jumlah;
	}

	public String getSatuan() {
		return satuan;
	}

	public void setSatuan(String satuan) {
		this.satuan = satuan;
	}

	public AlatVO getAlat() {
		return alat;
	}

	public void setAlat(AlatVO alat) {
		this.alat = alat;
	}

	
}
