package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;

@Entity
@Table(name="MapKebutuhanSaranaToKamar_M")
public class MapKebutuhanSaranaToKamar extends BaseMaster {
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, 
	generator = "public.mapkebutuhansaranatokamar_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.mapkebutuhansaranatokamar_m_id_seq", 
	sequenceName = "public.mapkebutuhansaranatokamar_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@ManyToOne
	@JoinColumn(name="ObjectKamarFk")
	private Kamar kamar;
	
	@Column(name="ObjectKamarFk", insertable=false, updatable=false,nullable=false)
	private Integer kamarId;
	
	@Column(name="jumlah")
	private Integer jumlah;
	
	@Column(name="satuan", length=50)
	private String satuan;
	
	@Column(name="harga")
	private Double harga;

	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Kamar getKamar() {
		return kamar;
	}

	public void setKamar(Kamar kamar) {
		this.kamar = kamar;
	}

	public Integer getKamarId() {
		return kamarId;
	}

	public void setKamarId(Integer kamarId) {
		this.kamarId = kamarId;
	}

	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 Double getHarga() {
		return harga;
	}

	public void setHarga(Double harga) {
		this.harga = harga;
	}
	
	

}
