package com.jasamedika.medifirst2000.vo;

import java.util.Date;

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

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

public class MappingPenerimaanLinenVO extends BaseTransactionVO {

	private static final long serialVersionUID = -4172995388927519233L;

	@ManyToOne
	@JoinColumn(name = "ObjectPenerimaanLinenFk")
	private PenerimaanLinenVO penerimaanLinen;

	@Column(name = "Tgl", nullable = false)
	@Caption(value = "Tgl")
	private Date tgl;

	@ManyToOne
	@JoinColumn(name = "ObjectRuanganFk")
	private RuanganVO ruangan;

	@Column(name = "Berat", nullable = false)
	@Caption(value = "Berat")
	private Float berat;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectSatuanFk")
	private SatuanStandarVO satuan;

	public PenerimaanLinenVO getPenerimaanLinen() {
		return penerimaanLinen;
	}

	public void setPenerimaanLinen(PenerimaanLinenVO penerimaanLinen) {
		this.penerimaanLinen = penerimaanLinen;
	}

	public Date getTgl() {
		return tgl;
	}

	public void setTgl(Date tgl) {
		this.tgl = tgl;
	}

	public RuanganVO getRuangan() {
		return ruangan;
	}

	public void setRuangan(RuanganVO ruangan) {
		this.ruangan = ruangan;
	}

	public Float getBerat() {
		return berat;
	}

	public void setBerat(Float berat) {
		this.berat = berat;
	}

	public SatuanStandarVO getSatuan() {
		return satuan;
	}

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

}
