package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.JenisObat;
import com.jasamedika.medifirst2000.entities.Produk;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;

import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class PelayananPasien
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "MapDiagnosaToProduk_M")
public class MapDiagnosaToProduk extends BaseTransaction {
	public String getKodeDiagnosis() {
		return kodeDiagnosis;
	}

	public void setKodeDiagnosis(String kodeDiagnosis) {
		this.kodeDiagnosis = kodeDiagnosis;
	}

	public Produk getProduk() {
		return produk;
	}

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

	@ManyToOne
	@JoinColumn(name = "ProdukFK")
	@Caption(value = "Produk")
	private Produk produk;

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

	@Caption(value = "Kode Diagnosis")
	@Column(name = "kodeDiagnosis", nullable = true)
	private String kodeDiagnosis;

}