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 KomponenKlinisHasil
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "KomponenKlinisHasil_M")
public class KomponenKlinisHasil extends BaseMaster {
	@NotNull(message = "Hasil Komponen Klinis tidak boleh kosong")
	@Column(name = "HasilKomponenKlinis", nullable = false, length = 20)
	@Caption(value = "Hasil Komponen Klinis")
	private String hasilKomponenKlinis;

	public void setHasilKomponenKlinis(String hasilKomponenKlinis) {
		this.hasilKomponenKlinis = hasilKomponenKlinis;
	}

	public String getHasilKomponenKlinis() {
		return this.hasilKomponenKlinis;
	}

	@NotNull(message = "Kd Hasil Komponen Klinis tidak boleh kosong")
	@Column(name = "KdHasilKomponenKlinis", nullable = false)
	@Caption(value = "Kode Hasil Komponen Klinis")
	private Byte kdHasilKomponenKlinis;

	public void setKdHasilKomponenKlinis(Byte kdHasilKomponenKlinis) {
		this.kdHasilKomponenKlinis = kdHasilKomponenKlinis;
	}

	public Byte getKdHasilKomponenKlinis() {
		return this.kdHasilKomponenKlinis;
	}

	@NotNull(message = "QHasil Komponen Klinis tidak boleh kosong")
	@Column(name = "QHasilKomponenKlinis", nullable = false)
	@Caption(value = "QHasil Komponen Klinis")
	private Byte qHasilKomponenKlinis;

	public void setqHasilKomponenKlinis(Byte qHasilKomponenKlinis) {
		this.qHasilKomponenKlinis = qHasilKomponenKlinis;
	}

	public Byte getqHasilKomponenKlinis() {
		return this.qHasilKomponenKlinis;
	}

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

	public Integer getId() {

		return id;
	}

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