package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
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 KelompokPenyebabDiagnosa
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "KelompokPenyebabDiagnosa_M")
public class KelompokPenyebabDiagnosa extends BaseMaster {
	@NotNull(message = "Kd Kelompok P Diagnosa tidak boleh kosong")
	@Column(name = "KdKelompokPDiagnosa", nullable = false, length = 2)
	@Caption(value = "Kode Kelompok P Diagnosa")
	private String kdKelompokPDiagnosa;

	public void setKdKelompokPDiagnosa(String kdKelompokPDiagnosa) {
		this.kdKelompokPDiagnosa = kdKelompokPDiagnosa;
	}

	public String getKdKelompokPDiagnosa() {
		return this.kdKelompokPDiagnosa;
	}

	@NotNull(message = "Kelompok P Diagnosa tidak boleh kosong")
	@Column(name = "KelompokPDiagnosa", nullable = false, length = 50)
	@Caption(value = "Kelompok P Diagnosa")
	private String kelompokPDiagnosa;

	public void setKelompokPDiagnosa(String kelompokPDiagnosa) {
		this.kelompokPDiagnosa = kelompokPDiagnosa;
	}

	public String getKelompokPDiagnosa() {
		return this.kelompokPDiagnosa;
	}

	@NotNull(message = "QKelompok P Diagnosa tidak boleh kosong")
	@Column(name = "QKelompokPDiagnosa", nullable = false)
	@Caption(value = "QKelompok P Diagnosa")
	private Byte qKelompokPDiagnosa;

	public void setqKelompokPDiagnosa(Byte qKelompokPDiagnosa) {
		this.qKelompokPDiagnosa = qKelompokPDiagnosa;
	}

	public Byte getqKelompokPDiagnosa() {
		return this.qKelompokPDiagnosa;
	}

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

	public Integer getId() {

		return id;
	}

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