package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "PencucianLinen_T")
public class PencucianLinen extends BaseTransaction {

	private static final long serialVersionUID = -5404040967720000404L;

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

	@ManyToOne
	@JoinColumn(name = "ObjectMappingCycleFk")
	private MappingCycle mappingCycle;

	@Column(name = "ObjectMappingCycleFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String mappingCyclenoRec;

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

	@ManyToOne
	@JoinColumn(name = "ObjectSatuanFk")
	private SatuanStandar satuan;

	@Column(name = "ObjectSatuanFk", insertable = false, updatable = false)
	private Integer satuanId;

	public Date getTgl() {
		return tgl;
	}

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

	public MappingCycle getMappingCycle() {
		return mappingCycle;
	}

	public void setMappingCycle(MappingCycle mappingCycle) {
		this.mappingCycle = mappingCycle;
	}

	public Float getBerat() {
		return berat;
	}

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

	public SatuanStandar getSatuan() {
		return satuan;
	}

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

}
