package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "LimbahB3Keluar_T")
public class LimbahB3Keluar extends BaseTransaction {

	@Column(name = "Tanggal")
	@Caption(value = "Tanggal")
	private Date tanggal;

	@Column(name = "JumlahLimbahB3Keluar")
	@Caption(value = "Jumlah limbah b3 keluar")
	private Double jumlahLimbahB3Keluar;

	@Column(name = "TujuanPenyerahan")
	@Caption(value = "Tujuan penyerahan")
	private String tujuanPenyerahan;

	@Column(name = "BuktiNomerDokumen")
	@Caption(value = "Bukti nomer doumen")
	private String buktiNomerDokumen;

	@Column(name = "SisaLimbah")
	@Caption(value = "Sisa limbah")
	private Double sisaLimbahB3;

	@Column(name = "periodeAwal")
	@Caption(value = "periodeAwal")
	private Date periodeAwal;

	@Column(name = "periodeAhir")
	@Caption(value = "periodeAhir")
	private Date periodeAhir;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisLimbahB3MasukFk")
	@Caption(value = "ObjectJenisLimbahB3MasukFk")
	private JenisLimbahB3Masuk jenisLimbahB3Masuk;

	@Column(name = "ObjectJenisLimbahB3MasukFk", insertable = false, updatable = false)
	private Integer jenisLimbahB3MasukId;

	@ManyToOne
	@JoinColumn(name = "ObjectRekananFk")
	@Caption(value = "ObjectRekananFk")
	private Rekanan rekanan;

	@Column(name = "ObjectRekananFk", insertable = false, updatable = false)
	private Integer rekananId;

	@Column(name = "total")
	@Caption(value = "total")
	private Double total;

	@Column(name = "maksimalPenyimpanan")
	@Caption(value = "maksimalPenyimpanan")
	private Double maksimalPenyimpanan;

	@ManyToOne
	@JoinColumn(name = "ObjectPerlakuanFk")
	@Caption(value = "ObjectPerlakuanFk")
	private Perlakuan perlakuan;

	@Column(name = "ObjectPerlakuanFk", insertable = false, updatable = false)
	private Integer perlakuanId;

}
