package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class JenisTarif
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "JenisTarif_M")
public class JenisTarif extends BaseMaster {
	@NotNull(message = "Jenis Tarif tidak boleh kosong")
	@Column(name = "JenisTarif", nullable = false, length = 20)
	@Caption(value = "Jenis Tarif")
	private String jenisTarif;

	public void setJenisTarif(String jenisTarif) {
		this.jenisTarif = jenisTarif;
	}

	public String getJenisTarif() {
		return this.jenisTarif;
	}

	@NotNull(message = "Kd Jenis Tarif tidak boleh kosong")
	@Column(name = "KdJenisTarif", nullable = false)
	@Caption(value = "Kode Jenis Tarif")
	private Byte kdJenisTarif;

	public void setKdJenisTarif(Byte kdJenisTarif) {
		this.kdJenisTarif = kdJenisTarif;
	}

	public Byte getKdJenisTarif() {
		return this.kdJenisTarif;
	}

	@NotNull(message = "QJenis Tarif tidak boleh kosong")
	@Column(name = "QJenisTarif", nullable = false)
	@Caption(value = "QJenis Tarif")
	private Byte qJenisTarif;

	public void setqJenisTarif(Byte qJenisTarif) {
		this.qJenisTarif = qJenisTarif;
	}

	public Byte getqJenisTarif() {
		return this.qJenisTarif;
	}

	/*
	 * @JsonManagedReference
	 * 
	 * @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
	 * mappedBy="kdjenistarif") private Set<HargaNettoProdukByKelas>
	 * HargaNettoDiscPasienPulangSet = new HashSet<HargaNettoProdukByKelas>();
	 * 
	 * public Set<HargaNettoProdukByKelas> getHargaNettoDiscPasienPulangSet() {
	 * return HargaNettoDiscPasienPulangSet; }
	 * 
	 * public void setHargaNettoDiscPasienPulangSet(Set<HargaNettoProdukByKelas>
	 * hargaNettoDiscPasienPulangSet) { HargaNettoDiscPasienPulangSet =
	 * hargaNettoDiscPasienPulangSet; }
	 * 
	 * 
	 * @JsonManagedReference
	 * 
	 * @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
	 * mappedBy="kdjenistarif") private Set<HargaNettoProdukByKelas>
	 * HargaNettoProdukByKelasSet = new HashSet<HargaNettoProdukByKelas>();
	 * 
	 * public Set<HargaNettoProdukByKelas> getHargaNettoProdukByKelasSet() {
	 * return HargaNettoProdukByKelasSet; }
	 * 
	 * public void setHargaNettoProdukByKelasSet(Set<HargaNettoProdukByKelas>
	 * hargaNettoProdukByKelasSet) { HargaNettoProdukByKelasSet =
	 * hargaNettoProdukByKelasSet; }
	 * 
	 * @JsonManagedReference
	 * 
	 * @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
	 * mappedBy="kdjenistarif") private Set<HargaNettoProdukByKelasD>
	 * HargaNettoProdukByKelasDSet = new HashSet<HargaNettoProdukByKelasD>();
	 * 
	 * public Set<HargaNettoProdukByKelasD> getHargaNettoProdukByKelasDSet() {
	 * return HargaNettoProdukByKelasDSet; }
	 * 
	 * public void setHargaNettoProdukByKelasDSet(Set<HargaNettoProdukByKelasD>
	 * hargaNettoProdukByKelasDSet) { HargaNettoProdukByKelasDSet =
	 * hargaNettoProdukByKelasDSet; }
	 * 
	 * @JsonManagedReference
	 * 
	 * @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
	 * mappedBy="kdjenistarif") private Set<KelompokPasien> KelompokPasienSet =
	 * new HashSet<KelompokPasien>();
	 * 
	 * public Set<KelompokPasien> getKelompokPasienSet() { return
	 * KelompokPasienSet; }
	 * 
	 * public void setKelompokPasienSet(Set<KelompokPasien> kelompokPasienSet) {
	 * KelompokPasienSet = kelompokPasienSet; }
	 */

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenistarif_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.jenistarif_m_id_seq", sequenceName = "public.jenistarif_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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