package com.jasamedika.medifirst2000.entities;

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.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "MappingKamarAsrama_T")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class MappingKamarAsrama extends BaseTransaction {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectOrderPelayananFk")
	private OrderPelayanan orderPelayanan;

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

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectKamarFk")
	@Caption(value = "Object Kamar")
	private Kamar kamar;

	@Column(name = "ObjectKamarFk", insertable = false, updatable = false)
	private Integer kamarId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectRuanganFk")
	@Caption(value = "Object Ruangan")
	private Ruangan ruangan;

	@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
	private Integer ruanganId;

	@Caption(value = "Harga Satuan")
	@Column(name = "HargaSatuan", nullable = true)
	private Double hargaSatuan;

	public Double getHargaSatuan() {
		return hargaSatuan;
	}

	public void setHargaSatuan(Double hargaSatuan) {
		this.hargaSatuan = hargaSatuan;
	}

	public Ruangan getRuangan() {
		return ruangan;
	}

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

	public OrderPelayanan getOrderPelayanan() {
		return orderPelayanan;
	}

	public void setOrderPelayanan(OrderPelayanan orderPelayanan) {
		this.orderPelayanan = orderPelayanan;
	}

	public Kamar getKamar() {
		return kamar;
	}

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

}
