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 = "MappingPelayananJenazah_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class MappingPelayananJenazah 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 = "ObjectProdukFk")
	@Caption(value = "Object Produk")
	private Produk produk;

	@Column(name = "ObjectProdukFk", insertable = false, updatable = false)
	private Integer produkId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectHargaFk")
	@Caption(value = "Object Harga")
	private HargaNettoProdukByKelas harga;

	@Column(name = "ObjectHargaFk", insertable = false, updatable = false)
	private Integer hargaId;

	public OrderPelayanan getOrderPelayanan() {
		return orderPelayanan;
	}

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

	public Produk getProduk() {
		return produk;
	}

	public void setProduk(Produk produk) {
		this.produk = produk;
	}

	public HargaNettoProdukByKelas getHarga() {
		return harga;
	}

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

}
